ACE3/addons/sitting/XEH_clientInit.sqf

13 lines
553 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
// Exit on Headless
if !(hasInterface) exitWith {};
// Add interaction menu exception
["isNotSitting", {!((_this select 0) getVariable [QGVAR(isSitting), false])}] call EFUNC(common,addCanInteractWithCondition);
2015-06-11 18:01:38 +00:00
// Handle interruptions
["medical_onUnconscious", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
2015-06-11 18:01:38 +00:00
["SetHandcuffed", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["SetSurrendered", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);