BIS fnc helicopterDamage: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - " ''via'' " to " via ") |
||
Line 15: | Line 15: | ||
<sqf>helicopter execVM "hsim\air_h\data\scripts\main_rotor_destruction.sqf";</sqf> | <sqf>helicopter execVM "hsim\air_h\data\scripts\main_rotor_destruction.sqf";</sqf> | ||
helicopter rotor status can be found | helicopter rotor status can be found via variable '''HSim_mainRotorDestroyed''': | ||
<sqf>_isRotorDestroyed = helicopter getVariable ["HSim_mainRotorDestroyed", false];</sqf> | <sqf>_isRotorDestroyed = helicopter getVariable ["HSim_mainRotorDestroyed", false];</sqf> | ||
}} | }} |
Latest revision as of 12:43, 21 February 2025
Description
- Description:
- Handling EH-based helicopter damage, event handler in question being Dammagedsic.
- Execution:
- call
- Groups:
- Helicopters
Syntax
- Syntax:
- [helicopter, selection, damage] call BIS_fnc_helicopterDamage
- Parameters:
- helicopter: Object
- selection: String - name of the helicopter selection receiving damage. Must be "main rotor"
- damage: Number - selection's damage. Will only trigger effects if damage > 0.999
- Return Value:
- Boolean - true when done
Examples
- Example 1:
Additional Information
- See also:
- See also needed
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