engineOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ENGINEON]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ENGINEON]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|ENGINEON]]
[[Category:Scripting Commands ArmA|ENGINEON]]


| ofpr |= Game name


<h2 style="color:#000066">'''''vehicle'' engineOn ''enable'''''</h2>
|1.9|= Game version
____________________________________________________________________________________________


| Activates and deactivates the engine of a vehicle. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| vehicle '''engineOn''' state |= Syntax


'''vehicle:''' [[Object]]
|p1= vehicle: [[Object]] |= Parameter 1


'''enable:''' [[Boolean]]
|p2= state: [[Boolean]] - true to turn the engine on, false to turn it off |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>?!(isEngineOn jeep) : jeep engineOn true</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
| [[isEngineOn]] |= See also


'''Compatibility:'''
}}


Version 1.90 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Switch the vehicle's engine on ([[true]]) or off ([[false]]).
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|ENGINEON]]
'''Example:'''
[[Category:Scripting Commands OFP 1.96|ENGINEON]]
 
[[Category:Scripting Commands OFP 1.46|ENGINEON]]
carOne '''engineOn''' [[true]]
[[Category:Scripting Commands ArmA|ENGINEON]]

Revision as of 10:08, 2 August 2006

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: Object
state: Boolean - true to turn the engine on, false to turn it off
Return Value:
Nothing

Examples

Example 1:
?!(isEngineOn 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