Arma 3 Scripting

engineOn

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.90

Command · Markdown · JSON · original wiki page

Description

Activates and deactivates the engine of a vehicle.

Syntax

vehicle engineOn state

Parameters:

Returns: Nothing

Examples

Example 1

if (!isEngineOn _jeep) then { _jeep engineOn true; };

Example 2

waitUntil { player == driver _jeep; };
vehicle player engineOn true;

Multiplayer

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.

See also

isEngineOn

Community notes

Benargee

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.