2015-06-08 21:39:14 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-06-22 13:25:10 +00:00
|
|
|
// Exit on Headless
|
|
|
|
if !(hasInterface) exitWith {};
|
|
|
|
|
2015-06-09 16:52:12 +00:00
|
|
|
// Add interaction menu exception
|
2015-06-08 21:39:14 +00:00
|
|
|
["isNotSitting", {!((_this select 0) getVariable [QGVAR(isSitting), false])}] call EFUNC(common,addCanInteractWithCondition);
|
2015-06-09 16:52:12 +00:00
|
|
|
|
2015-06-11 18:01:38 +00:00
|
|
|
// Handle interruptions
|
2015-07-07 01:46:54 +00:00
|
|
|
["medical_onUnconscious", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
|
|
|
|
["SetHandcuffed", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
|