Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.40

Description

Description:

Multiplies the engine strength, and divides the max speed of the vehicle by the specified coefficient (either makes the vehicle faster but weaker, or slower and stronger).

Mainly used for PhysX vehicles, in connection with towing actions.

Syntax

Syntax:vehicle setEngineStrengthCoef coef
Parameters:
  • vehicle: Object - Vehicle to which the factor is applied.
  • coef: Number - Factor by which the speed is decreased, and strength is increased (default: 1).
Return Value:Nothing

Examples

Examples:
(vehicle player) setEngineStrengthCoef 2.0

Additional Information

See also: getEngineStrengthCoef, setMaxSpeedLimit
Multiplayer:
Problems:

Notes