ACE3/addons/tripod/XEH_postInit.sqf
2015-06-04 21:13:44 +02:00

17 lines
430 B
Plaintext

#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);