Add player event handler to fix zeus problems with effects (#5022)

This commit is contained in:
Zakant 2017-04-30 08:46:51 +02:00 committed by PabstMirror
parent dab9772d03
commit 79047bd2e7

View File

@ -15,3 +15,10 @@ GVAR(heartBeatEffectRunning) = false;
[_unconscious, 1] call FUNC(effectUnconscious);
["unconscious", _unconscious] call EFUNC(common,setDisableUserInputStatus);
}] call CBA_fnc_addEventHandler;
["unit", {
params ["_new", "_old"];
private _status = _new getVariable ["ace_unconscious", false];
[_status, 0] call FUNC(effectUnconscious);
["unconscious", _status] call EFUNC(common,setDisableUserInputStatus);
}] call CBA_fnc_addPlayerEventHandler;