BIS fnc helicopterDamage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
Line 22: Line 22:
|p3= damage: [[Number]] - ''selection'''s damage. Will only trigger effects if ''damage'' > 0.999
|p3= damage: [[Number]] - ''selection'''s damage. Will only trigger effects if ''damage'' > 0.999


| [[Boolean]] - [[true]] when done
|r1=[[Boolean]] - [[true]] when done


|x1= <code>myHelicopter [[addEventHandler]] ["Dammaged", { [[Magic Variables#this|_this]] [[call]] [[BIS_fnc_helicopterDamage]]; }];</code>
|x1= <code>myHelicopter [[addEventHandler]] ["Dammaged", { [[Magic Variables#this|_this]] [[call]] [[BIS_fnc_helicopterDamage]]; }];</code>

Revision as of 20:27, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Helicopters

Syntax

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