Difference between revisions of "BIS fnc helicopterDamage"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
Line 14: Line 14:
 
<code>_isRotorDestroyed {{=}} helicopter [[getVariable]] ["HSim_mainRotorDestroyed", [[false]]];</code>
 
<code>_isRotorDestroyed {{=}} helicopter [[getVariable]] ["HSim_mainRotorDestroyed", [[false]]];</code>
  
| [helicopter, selection, damage] call [[BIS_fnc_helicopterDamage]]
+
|s1=[helicopter, selection, damage] call [[BIS_fnc_helicopterDamage]]
  
 
|p1= helicopter: [[Object]]
 
|p1= helicopter: [[Object]]

Revision as of 16:56, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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