From c2be6ffef6047165daabddf77c6dd0678962eccb Mon Sep 17 00:00:00 2001 From: ulteq Date: Tue, 2 Jun 2015 20:06:56 +0200 Subject: [PATCH] Added additional abort condition. --- addons/sandbag/XEH_postInit.sqf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/sandbag/XEH_postInit.sqf b/addons/sandbag/XEH_postInit.sqf index 54ed6cc7ef..d1c0ad0766 100644 --- a/addons/sandbag/XEH_postInit.sqf +++ b/addons/sandbag/XEH_postInit.sqf @@ -5,4 +5,11 @@ GVAR(sandBag) = objNull; GVAR(deployPFH) = -1; GVAR(deployDirection) = 0; +// Cancel deploy sandbag if interact menu opened +["interactMenuOpened", { + if (GVAR(deployPFH) != -1 && {!isNull (GVAR(sandBag))}) then { + call FUNC(deployCancel); + }; +}] call EFUNC(common,addEventHandler); + [{_this call DFUNC(handleScrollWheel)}] call EFUNC(common,addScrollWheelEventHandler);