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;
|
|
|
|
|
2016-05-24 13:13:11 +00:00
|
|
|
/*["ace_interactMenuOpened", {
|
2016-03-02 10:01:39 +00:00
|
|
|
if ((CBA_missionTime > GVAR(cancelTime)) && !isNull GVAR(ladder)) then {
|
2015-06-12 21:54:51 +00:00
|
|
|
GVAR(ladder) call FUNC(cancelTLdeploy);
|
|
|
|
};
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;*/
|
2015-09-26 01:16:55 +00:00
|
|
|
|
|
|
|
// Cancel adjustment if interact menu opens
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
2015-09-26 01:16:55 +00:00
|
|
|
|
|
|
|
// Cancel adjusting on player change.
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_playerChanged", {_this call FUNC(handlePlayerChanged)}] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_playerVehicleChanged", {[ACE_player, objNull] call FUNC(handlePlayerChanged)}] call CBA_fnc_addEventHandler;
|
2015-09-26 01:16:55 +00:00
|
|
|
|
|
|
|
// handle falling unconscious
|
2016-06-03 18:57:21 +00:00
|
|
|
["ace_unconscious", {_this call FUNC(handleUnconscious)}] call CBA_fnc_addEventHandler;
|
2015-06-12 21:54:51 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
// @todo captivity?
|