A3XAI-Final/A3XAI/compile/A3XAI_addVehAirEH.sqf
Snark Industries c4a7084754 A3XAI Final Release (April 17, 2016 version)
Releasing previously unreleased version. Completely unsupported with no guarantee of functionality. Use at own risk.
2017-07-19 21:20:00 -04:00

10 lines
377 B
Plaintext

#include "\A3XAI\globaldefines.hpp"
if (isNull _this) exitWith {};
if (isNil {_this getVariable "durability"}) then {_this setVariable ["durability",[0,0,0,0]];};
_this addEventHandler ["Killed","_this call A3XAI_heliDestroyed"];
_this addEventHandler ["GetOut","_this call A3XAI_heliLanded"];
_this addEventHandler ["HandleDamage","_this call A3XAI_handleDamageHeli"];
true