/* * Author: PabstMirror * Handles right clicking on the map ('dragging' the map) * Release autotrack if enabled. * * Arguments: * 0: The Map * 1: MouseButton * 2: MousePosX * 3: MousePosY * * Return Value: * Nothing * * Example: * [minimap,0,0.5,0.5] call ace_microdagr_fnc_mapButtonDownEH * * Public: No */ #include "script_component.hpp" PARAMS_4(_theMap,_mouseButton,_xPos,_yPos); //Only handle RMB if (_mouseButton != 1) exitWith {}; if (GVAR(mapAutoTrackPosition)) then { GVAR(mapAutoTrackPosition) = false; [] call FUNC(showApplicationPage); };