Arma 3 Scripting

BIS_fnc_helicopterDamage

  • Arma 3 v0.50
  • First in Take On Helicopters v1.00

Function · Markdown · JSON · original wiki page

Description

Handling EH-based helicopter damage, event handler in question being Dammaged [sic].

Note

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];

Syntax

[helicopter, selection, damage] call BIS_fnc_helicopterDamage

Parameters:

Returns: Boolean - true when done

Examples

Example 1

myHelicopter addEventHandler ["Dammaged", { _this call BIS_fnc_helicopterDamage; }];