ACE3/addons/sitting/XEH_clientInit.sqf

19 lines
709 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
// Exit on Headless
if (!hasInterface) exitWith {};
["SettingsInitialized", {
TRACE_1("SettingInit", GVAR(enable));
2015-12-30 20:55:25 +00:00
//If not enabled, then do not add CanInteractWith Condition or event handlers:
if (!GVAR(enable)) exitWith {};
// Add interaction menu exception
["isNotSitting", {isNil {(_this select 0) getVariable QGVAR(isSitting)}}] call EFUNC(common,addCanInteractWithCondition);
// Handle interruptions
["medical_onUnconscious", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["SetHandcuffed", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
}] call EFUNC(common,addEventHandler);