ACE3/addons/medical_ui/XEH_postInit.sqf

16 lines
490 B
Plaintext
Raw Normal View History

2016-12-01 19:54:03 +00:00
#include "script_component.hpp"
if (!hasInterface) exitWith {};
[] call FUNC(initEffects);
2017-01-29 19:24:16 +00:00
[FUNC(handleEffects), 1, []] call CBA_fnc_addPerFrameHandler;
[FUNC(effectHeartBeat), 0, []] call CBA_fnc_addPerFrameHandler;
2016-12-09 18:16:41 +00:00
["ace_unconscious", {
params ["_unit", "_unconscious"];
if (_unit != ACE_player) exitWith {};
[_unconscious, 1] call FUNC(effectUnconscious);
2017-01-29 19:24:16 +00:00
["unconscious", _unconscious] call EFUNC(common,setDisableUserInputStatus);
2016-12-09 18:16:41 +00:00
}] call CBA_fnc_addEventHandler;