ACE3/addons/tripod/XEH_postInit.sqf

17 lines
430 B
Plaintext
Raw Normal View History

2015-06-04 19:13:44 +00:00
#include "script_component.hpp"
GVAR(adjuster) = objNull;
GVAR(adjusting) = false;
GVAR(adjustPFH) = -1;
GVAR(height) = 0;
// Cancel adjustment if interact menu opens
["interactMenuOpened", {
if (GVAR(adjustPFH) != -1 && GVAR(adjusting)) then {
GVAR(adjusting) = false;
};
}] call EFUNC(common,addEventHandler);
[{(_this select 0) call FUNC(handleScrollWheel);}] call EFUNC(Common,addScrollWheelEventHandler);