ACE3/addons/sandbag/XEH_postInit.sqf

16 lines
440 B
Plaintext
Raw Normal View History

2015-06-02 17:30:50 +00:00
#include "script_component.hpp"
GVAR(placer) = objNull;
GVAR(sandBag) = objNull;
GVAR(deployPFH) = -1;
GVAR(deployDirection) = 0;
2015-06-02 18:06:56 +00:00
// Cancel deploy sandbag if interact menu opened
["interactMenuOpened", {
if (GVAR(deployPFH) != -1 && {!isNull (GVAR(sandBag))}) then {
call FUNC(deployCancel);
};
}] call EFUNC(common,addEventHandler);
2015-06-02 17:30:50 +00:00
[{_this call DFUNC(handleScrollWheel)}] call EFUNC(common,addScrollWheelEventHandler);