isEngineOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofpr
|game1= ofp


|1.90
|version1= 1.90
 
|game2= ofpe
 
|version2= 1.00
 
|game3= arma1
 
|version3= 1.00
 
|game4= arma2
 
|version4= 1.00
 
|game5= arma2oa
 
|version5= 1.51
 
|game6= tkoh
 
|version6= 1.00
 
|game7= arma3
 
|version7= 0.50


|arg= global
|arg= global
Line 9: Line 33:
|gr1= Object Manipulation
|gr1= Object Manipulation


| Returns [[true]] if engine is on, [[false]] if it is off.
|descr= Returns [[true]] if engine is on, [[false]] if it is off.


| [[isEngineOn]] vehicle
|s1= [[isEngineOn]] vehicle


|p1=  vehicle: [[Object]]
|p1=  vehicle: [[Object]]


| [[Boolean]]
|r1= [[Boolean]]
   
   
|x1= <code>_carEngineIsOn = [[isEngineOn]] _carOne;</code>
|x1= <code>_carEngineIsOn = [[isEngineOn]] _carOne;</code>
Line 21: Line 45:
|seealso= [[engineOn]], [[setCollisionLight]], [[isLightOn]], [[isCollisionLightOn]]
|seealso= [[engineOn]], [[setCollisionLight]], [[isLightOn]], [[isCollisionLightOn]]
}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}


<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->

Revision as of 11:28, 27 March 2021

Hover & click on the images for description

Description

Description:
Returns true if engine is on, false if it is off.
Groups:
Object Manipulation

Syntax

Syntax:
isEngineOn vehicle
Parameters:
vehicle: Object
Return Value:
Boolean

Examples

Example 1:
_carEngineIsOn = isEngineOn _carOne;

Additional Information

See also:
engineOnsetCollisionLightisLightOnisCollisionLightOn

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
Posted on March 20, 2015 - 14:32 (UTC)
RKillah
isEngineOn returns true for static objects without an engine
Posted on April 6, 2015 - 08:24 (UTC)
Killzone Kid
Bind Engine action to User Action 1 this addAction ["", { _this select 1 action [ ["EngineOn", "EngineOff"] select isEngineOn (_this select 0), _this select 0 ]; }, "", -10, false, true, "User1", "_this == driver _target"];