To switch engine off can also use setFuel and fuel:
private "_gas";
_gas = fuel heli;
heli setFuel 0;
sleep 0.01;
heli setFuel _gas;
Also sets helicopter fuel back to original quantity. Works on every other vehicle.
Command in Object Manipulation
Also available as Markdown and JSON, or read the original wiki page.
Activates and deactivates the engine of a vehicle.
vehicle engineOn state
Parameters:
Returns: Nothing
if (!isEngineOn _jeep) then { _jeep engineOn true; };
waitUntil { player == driver _jeep; };
vehicle player engineOn true;
Executed on a remote vehicle this command may turn the engine on but then it will get turned off by itself after a short while.
To switch engine off can also use setFuel and fuel:
private "_gas";
_gas = fuel heli;
heli setFuel 0;
sleep 0.01;
heli setFuel _gas;
Also sets helicopter fuel back to original quantity. Works on every other vehicle.