mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
implement pr #5385
This commit is contained in:
parent
1f2b187ee3
commit
6520fdb624
@ -17,7 +17,10 @@
|
||||
|
||||
params ["_unit"];
|
||||
|
||||
_unit addEventHandler ["HandleDamage", {_this call FUNC(handleDamage)}];
|
||||
_unit setVariable [
|
||||
QGVAR(HandleDamageEHID),
|
||||
_unit addEventHandler ["HandleDamage", {_this call FUNC(handleDamage)}]
|
||||
];
|
||||
|
||||
if (local _unit) then {
|
||||
if (!EGVAR(common,settingsInitFinished)) exitWith {
|
||||
|
@ -13,7 +13,10 @@
|
||||
} else {
|
||||
// Calling this function inside curly brackets allows the usage of
|
||||
// "exitWith", which would be broken with "HandleDamage" otherwise.
|
||||
_unit addEventHandler ["HandleDamage", {_this call FUNC(handleDamage)}];
|
||||
_unit setVariable [
|
||||
QGVAR(HandleDamageEHID),
|
||||
_unit addEventHandler ["HandleDamage", {_this call FUNC(handleDamage)}]
|
||||
];
|
||||
};
|
||||
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user