/* * Author: PabstMirror * Handles the double tapping either of the 2 mini-maps * * Arguments: * 0: The Map * 1: MouseButton * 2: MousePosX * 3: MousePosY * * Return Value: * None * * Example: * [minimap,0,0.5,0.5] call ace_microdagr_fnc_mapDoubleTapEH * * Public: No */ #include "script_component.hpp" params ["_theMap", "_mouseButton", "_xPos", "_yPos"]; private ["_worldPos"]; //Only handle LMB if (_mouseButton != 0) exitWith {}; _worldPos = _theMap ctrlMapScreenToWorld [_xPos, _yPos]; _worldPos pushBack (getTerrainHeightASL _worldPos); GVAR(newWaypointPosition) = _worldPos; [APP_MODE_MARK] call FUNC(saveCurrentAndSetNewMode);