2015-06-03 18:27:52 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
// Cancel tactical ladder deployment if the interact menu is opened
|
|
|
|
["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);
|
|
|
|
};
|
|
|
|
}] call EFUNC(common,addEventHandler);
|
|
|
|
|
|
|
|
[{(_this select 0) call FUNC(handleScrollWheel);}] call EFUNC(Common,addScrollWheelEventHandler);
|