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>disableEngine: if true, player won't be able to start the engine
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><br>--------------------------------------<br>And what's with BOOL otherwise, what does it do???<br>--------------------------------------<br>I have no clue what 'otherwise' is either. Xbox360 of course ends at TU27 so that's our latest scripts and every script still only has the first 3 parameters. <br>Side Note: It would of been nice though if it was to handle jet engines instead of having that separate native for it.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.setEngineOn(value, instantly, disableEngine);</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.setEngineOn(value, instantly, otherwise);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''value:''' Boolean
*'''value:''' Boolean
*'''instantly:''' Boolean
*'''instantly:''' Boolean
*'''disableEngine:''' Boolean
*'''otherwise:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

Revision as of 01:19, 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.

--------------------------------------
And what's with BOOL otherwise, what does it do???
--------------------------------------
I have no clue what 'otherwise' is either. Xbox360 of course ends at TU27 so that's our latest scripts and every script still only has the first 3 parameters.
Side Note: It would of been nice though if it was to handle jet engines instead of having that separate native for it.

Syntax

vehicle.setEngineOn(value, instantly, otherwise);

Required Arguments

  • value: Boolean
  • instantly: Boolean
  • otherwise: Boolean

Return value

  • Undefined

Example

// todo

See also