Vehicle::setEngineOn: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
Starts or stops the engine on the specified vehicle.<br><br>vehicle: The vehicle to start or stop the engine on.<br>value: true to turn the vehicle on; false to turn it off.<br>instantly: if true, the vehicle will be set to the state immediately; otherwise, the current driver will physically turn on or off the engine.<br>
Starts or stops the engine on the specified vehicle.<br><br>vehicle: The vehicle to start or stop the engine on.<br>value: true to turn the vehicle on; false to turn it off.<br>instantly: if true, the vehicle will be set to the state immediately; otherwise, the current driver will physically turn on or off the engine.<br>disableEngine: if true, player won't be able to start the engine
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.setEngineOn(value, instantly, disableEngine);</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.setEngineOn(value, instantly, disableEngine);</syntaxhighlight>

Revision as of 00:53, 27 November 2017

Starts or stops the engine on the specified vehicle.

vehicle: The vehicle to start or stop the engine on.
value: true to turn the vehicle on; false to turn it off.
instantly: if true, the vehicle will be set to the state immediately; otherwise, the current driver will physically turn on or off the engine.
disableEngine: if true, player won't be able to start the engine

Syntax

vehicle.setEngineOn(value, instantly, disableEngine);

Required Arguments

  • value: Boolean
  • instantly: Boolean
  • disableEngine: Boolean

Return value

  • Undefined

Example

// todo

See also