engineOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (changed global to local variable to make clear the variable)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''engineOn''' state |= Syntax
| [[Object#Vehicle|Vehicle]] '''engineOn''' state |= Syntax


|p1= vehicle: [[Object]] |= Parameter 1
|p1= [[Object#Vehicle|Vehicle]] |= Parameter 1


|p2= state: [[Boolean]] - true to turn the engine on, false to turn it off |= Parameter 2
|p2= state: [[Boolean]] - true to turn the engine on, false to turn it off |= Parameter 2
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>?!(isEngineOn jeep) : jeep engineOn true</pre> |= Example 1
|x1= <pre>?!(EngineOn _jeep) : _jeep engineOn true</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 10:11, 27 August 2007

Hover & click on the images for description

Description

Description:
Activates and deactivates the engine of a vehicle.
Groups:
Uncategorised

Syntax

Syntax:
Vehicle engineOn state
Parameters:
Vehicle
state: Boolean - true to turn the engine on, false to turn it off
Return Value:
Nothing

Examples

Example 1:
?!(EngineOn _jeep) : _jeep engineOn true

Additional Information

See also:
isEngineOn

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section