Difference between revisions of "BIS fnc helicopterDamage"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Helicopters |GROUP1=")
m (Text replacement - "\[\[Category\:Function Group\: Helicopters(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Line 42: Line 42:
  
 
<h3 style="display:none">Bottom Section</h3>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Helicopters|{{uc:helicopterDamage}}]]
+
 
 
[[Category:Functions|{{uc:helicopterDamage}}]]
 
[[Category:Functions|{{uc:helicopterDamage}}]]
 
[[Category:{{Name|tkoh}}: Functions|{{uc:helicopterDamage}}]]
 
[[Category:{{Name|tkoh}}: Functions|{{uc:helicopterDamage}}]]
 
[[Category:{{Name|arma3}}: Functions|{{uc:helicopterDamage}}]]
 
[[Category:{{Name|arma3}}: Functions|{{uc:helicopterDamage}}]]

Revision as of 10:45, 13 October 2020

Hover & click on the images for description

Description

Description:
Handling EH-based helicopter damage, event handler in question being Dammagedsic.
params ["_helicopter", "_selection", "_damage"];

Executed script is: helicopter execVM "hsim\air_h\data\scripts\main_rotor_destruction.sqf"; helicopter rotor status can be found via variable HSim_mainRotorDestroyed:

_isRotorDestroyed = helicopter getVariable ["HSim_mainRotorDestroyed", false];
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:
myHelicopter addEventHandler ["Dammaged", { _this call BIS_fnc_helicopterDamage; }];

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

Notes

Bottom Section