mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Workaround to prevent accidentally canceling the ladder deployment
This commit is contained in:
parent
8336f1d192
commit
4160c7668c
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user