isEngineOn

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint: Resistance version 1.9
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint: Resistance
Version:
1.9

Description

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

Syntax

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

Examples

Example 1:
_OnOff = isEngineOn _carOne

Additional Information

Multiplayer:
-
See also:
engineOnsetCollisionLightisLightOnisCollisionLightOn

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

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"];