RKillah
isEngineOn returns true for static objects without an engine
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Returns true if engine is on, false if it is off.
isEngineOn vehicle
Parameters:
vehicle: ObjectReturns: Boolean
_carEngineIsOn = isEngineOn _carOne;
engineOn · setCollisionLight · isLightOn · isCollisionLightOn
isEngineOn returns true for static objects without an engine
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"];
If you're a client (not server) and check remote vehicle that is far away from the camera, you'll get an outdated engine state until the vehicle and client camera position are close to each other. Distance seems to be around 6km and doesn't depend on video settings.