Skip to content

Commit

Permalink
Add player event handler to fix zeus problems with effects (#5022)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakant authored and PabstMirror committed Apr 30, 2017
1 parent dab9772 commit 79047bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/medical_ui/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 79047bd

Please sign in to comment.