{"name":"BIN_fnc_empVehicle","operator":null,"title":"BIN fnc empVehicle","type":"function","url":"https://community.bistudio.com/wiki/BIN_fnc_empVehicle","revid":350046,"updated":"2023-11-20T22:17:29Z","groups":["Contact"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.94"}],"since":{"game":"arma3","name":"Arma 3","version":"1.94"},"arma3_since":"1.94","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets EMP parameters to a vehicle. Destroys lights and optionally prevents vehicle from starting\n\n> [!NOTE]\n> The player has to be defined as `BIN_player` for the voice lines to be spoken.\n\n> [!NOTE]\n> This content is exclusive to the Arma 3 Contact Expansion.","syntaxes":[{"syntax":"[obj, destroyEngine, aiExit] call BIN_fnc_empVehicle","since":null,"effect":null,"exec":null,"params":[{"name":"obj","type":"Object","optional":false,"default":null,"description":"the vehicle","types":["Object"],"since":null,"text":"obj: Object - the vehicle"},{"name":"destroyEngine","type":"Boolean","optional":true,"default":"true","description":"true to destroys the engine, false to have it working","types":["Boolean"],"since":null,"text":"destroyEngine: Boolean - (Optional, default true) true to destroys the engine, false to have it working"},{"name":"aiExit","type":"Boolean","optional":true,"default":"true","description":"AI behaviour in vehicle; true to make them exit the vehicle, false to remain in it","types":["Boolean"],"since":null,"text":"aiExit: Boolean - (Optional, default true) AI behaviour in vehicle; true to make them exit the vehicle, false to remain in it"}],"returns":{"type":"","types":[],"description":null,"text":""}}],"examples":[{"text":"```sqf\n[_enemyVehicle, true, true] call BIN_fnc_empVehicle;\n```","code":["[_enemyVehicle, true, true] call BIN_fnc_empVehicle;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setDamage","setHitPointDamage"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Contact","Functions","Introduced with Arma 3 version 1.94"],"docblock":null,"filled_from_docblock":[]}