{"name":"BIN_fnc_empVehicle","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","games":{"arma3":"1.94"},"since":"arma3 1.94","arma3_since":"1.94","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","params":[{"name":"obj","type":"Object","description":"the vehicle","type_expr":"Object"},{"name":"destroyEngine","type":"Boolean","optional":true,"default":"true","description":"true to destroys the engine, false to have it working","type_expr":"Boolean","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","type_expr":"Boolean","text":"aiExit: Boolean - (Optional, default true) AI behaviour in vehicle; true to make them exit the vehicle, false to remain in it"}],"returns":null}],"examples":[{"code":["[_enemyVehicle, true, true] call BIN_fnc_empVehicle;"]}],"see_also":["setDamage","setHitPointDamage"]}