BIN fnc empVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ") |
Lou Montana (talk | contribs) (Page filling) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
|gr1= Contact | |gr1= Contact | ||
|descr= | |descr= Sets EMP parameters to a vehicle. Destroys lights and optionally prevents vehicle from starting | ||
{{Feature|informative|The player has to be defined as <sqf inline>BIN_player</sqf> for the voice lines to be spoken.}} | |||
{{Feature|arma3contact}} | |||
|s1= [obj, destroyEngine, aiExit] call [[BIN_fnc_empVehicle]] | |||
|p1= obj: [[Object]] - the vehicle | |||
|p2= destroyEngine: [[Boolean]] - (Optional, default [[true]]) [[true]] to destroys the engine, [[false]] to have it working | |||
|p3= aiExit: [[Boolean]] - (Optional, default [[true]]) AI behaviour in vehicle; [[true]] to make them exit the vehicle, [[false]] to remain in it | |||
|r1= | |r1= | ||
|x1= < | |x1= <sqf>[_enemyVehicle, true, true] call BIN_fnc_empVehicle;</sqf> | ||
|seealso= | |seealso= [[setDamage]] [[setHitPointDamage]] | ||
}} | }} |
Latest revision as of 23:17, 20 November 2023
Description
- Description:
- Sets EMP parameters to a vehicle. Destroys lights and optionally prevents vehicle from starting
- Execution:
- call
- Groups:
- Contact
Syntax
- Syntax:
- [obj, destroyEngine, aiExit] call BIN_fnc_empVehicle
- Parameters:
- obj: Object - the vehicle
- destroyEngine: Boolean - (Optional, default true) true to destroys the engine, false to have it working
- aiExit: Boolean - (Optional, default true) AI behaviour in vehicle; true to make them exit the vehicle, false to remain in it
- Return Value:
- Return value needed
Examples
- Example 1:
Additional Information
- See also:
- setDamage setHitPointDamage
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note