/* * Author: commy2 * Remove a scroll wheel event handler. * * Arguments: * 0: ID of the event handler * * Return Value: * None * * Public: Yes */ #include "script_component.hpp" params ["_id"]; private "_actionsVar"; _actionsVar = missionNamespace getVariable ["ACE_EventHandler_ScrollWheel", [-1, [], []]]; _actionsVar params ["_currentId", "_actionIDs", "_actions"]; _id = _actionIDs find _id; if (_id == -1) exitWith {}; _actionIDs set [_id, -1]; _actionIDs = _actionIDs - [-1]; _actions set [_id, []];//{} _actions = _actions - [[]];//[{}] missionNamespace setVariable ["ACE_EventHandler_ScrollWheel", [_currentId, _actionIDs, _actions]];