2015-06-03 18:27:52 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2015-06-12 21:54:51 +00:00
|
|
|
GVAR(ladder) = objNull;
|
2015-06-12 22:01:48 +00:00
|
|
|
GVAR(cancelTime) = 0;
|
2015-06-12 21:54:51 +00:00
|
|
|
GVAR(currentStep) = 3;
|
|
|
|
GVAR(currentAngle) = 0;
|
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
/*["interactMenuOpened", {
|
2015-06-12 22:01:48 +00:00
|
|
|
if ((ACE_time > GVAR(cancelTime)) && !isNull GVAR(ladder)) then {
|
2015-06-12 21:54:51 +00:00
|
|
|
GVAR(ladder) call FUNC(cancelTLdeploy);
|
|
|
|
};
|
2015-09-26 01:16:55 +00:00
|
|
|
}] call EFUNC(common,addEventHandler);*/
|
|
|
|
|
|
|
|
// Cancel adjustment if interact menu opens
|
|
|
|
["interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call EFUNC(common,addEventHandler);
|
|
|
|
|
|
|
|
// Cancel adjusting on player change.
|
|
|
|
["playerChanged", {_this call FUNC(handlePlayerChanged)}] call EFUNC(common,addEventhandler);
|
|
|
|
["playerVehicleChanged", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call EFUNC(common,addEventhandler);
|
|
|
|
|
|
|
|
// handle falling unconscious
|
|
|
|
["medical_onUnconscious", {_this call FUNC(handleUnconscious)}] call EFUNC(common,addEventhandler);
|
2015-06-12 21:54:51 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
// @todo captivity?
|