2015-02-06 12:47:17 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
private ["_unit"];
|
|
|
|
_unit = _this select 0;
|
|
|
|
|
|
|
|
_unit addEventHandler ["HandleDamage", {_this call FUNC(handleDamage)}];
|
2015-04-19 15:28:47 +00:00
|
|
|
|
|
|
|
if (local _unit) then {
|
|
|
|
[_unit] call FUNC(init);
|
|
|
|
};
|