diff --git a/addons/tacticalladder/XEH_postInit.sqf b/addons/tacticalladder/XEH_postInit.sqf index 0dca81fd64..f0091ec7fa 100644 --- a/addons/tacticalladder/XEH_postInit.sqf +++ b/addons/tacticalladder/XEH_postInit.sqf @@ -1,12 +1,13 @@ #include "script_component.hpp" GVAR(ladder) = objNull; +GVAR(cancelTime) = 0; GVAR(currentStep) = 3; GVAR(currentAngle) = 0; // Cancel tactical ladder deployment if the interact menu is opened ["interactMenuOpened", { - if (!isNull GVAR(ladder)) then { + if ((ACE_time > GVAR(cancelTime)) && !isNull GVAR(ladder)) then { GVAR(ladder) call FUNC(cancelTLdeploy); }; }] call EFUNC(common,addEventHandler); diff --git a/addons/tacticalladder/functions/fnc_positionTL.sqf b/addons/tacticalladder/functions/fnc_positionTL.sqf index 022b02da0f..c41b6c1861 100644 --- a/addons/tacticalladder/functions/fnc_positionTL.sqf +++ b/addons/tacticalladder/functions/fnc_positionTL.sqf @@ -33,6 +33,7 @@ _ladder animate ["rotate", 0]; } forEach ["extract_1", "extract_2", "extract_3"]; // Extract ladder at head height (extract_3) GVAR(ladder) = _ladder; +GVAR(cancelTime) = ACE_time + 1; // Workaround to prevent accidental canceling GVAR(currentStep) = 3; GVAR(currentAngle) = 0;