BIN fnc empVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to " ") |
Lou Montana (talk | contribs) (Page filling) |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|game1= arma3 | |||
|version1= 1.94 | |||
| | |gr1= Contact | ||
| | |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= | |||
|x1= <sqf>[_enemyVehicle, true, true] call BIN_fnc_empVehicle;</sqf> | |||
|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