BIS fnc helicopterDamage: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|1.00 | |version1= 1.00 | ||
|game2= arma3 | |game2= arma3 | ||
Line 9: | Line 9: | ||
|gr1= Helicopters | |gr1= Helicopters | ||
|descr= Handling EH-based helicopter damage, event handler in question being [[ | |descr= Handling EH-based helicopter damage, event handler in question being {{sic|[[Arma 3: Event Handlers#Dammaged|Da''mm''aged]]}}. | ||
{{Feature|informative| | |||
Executed script is: | Executed script is: | ||
< | <sqf>helicopter execVM "hsim\air_h\data\scripts\main_rotor_destruction.sqf";</sqf> | ||
helicopter rotor status can be found ''via'' variable '''HSim_mainRotorDestroyed''': | helicopter rotor status can be found ''via'' variable '''HSim_mainRotorDestroyed''': | ||
< | <sqf>_isRotorDestroyed = helicopter getVariable ["HSim_mainRotorDestroyed", false];</sqf> | ||
}} | |||
|s1=[helicopter, selection, damage] call [[BIS_fnc_helicopterDamage]] | |s1= [helicopter, selection, damage] call [[BIS_fnc_helicopterDamage]] | ||
|p1= helicopter: [[Object]] | |p1= helicopter: [[Object]] | ||
Line 24: | Line 27: | ||
|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 | ||
|r1=[[Boolean]] - [[true]] when done | |r1= [[Boolean]] - [[true]] when done | ||
|x1= < | |x1= <sqf>myHelicopter addEventHandler ["Dammaged", { _this call BIS_fnc_helicopterDamage; }];</sqf> | ||
|seealso= | |||
}} | }} | ||
Latest revision as of 11:21, 13 July 2022
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