Map Tp Without Onmapsingleclick
Was playing on a wasteland server, and they had onmapsingleclick fitlerd , since there fitlers aren't released I just used the dayz sa method monky/lystic/hangender made.
Code:
disableSerialization;
closeDialog 0;
if (isNil "jgdfk1") then
{
jgdfk1 =
{
Vehicle Player setpos _this;
systemchat format ["Teleported to: %1", _this];
};
jgdfk2 =
{
_gsddf = _this select 0;
{
_gsddf drawIcon ["\A3\ui\data\map\markers\military\Start_CA.paa", if (_x == player) then {[0,0,1,1]} else {[1,0,0,1]}, getPos _x, ((1 - ctrlMapScale _gsddf) max 0.2)*30, ((1 - ctrlMapScale _gsddf) max 0.2)*30, getDir _x, "herro", 2];
} forEach (entities "SurvivorBase");
};
};
createDialog "RscDisplayMainMap";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn jgdfk1"];
_map ctrlAddEventHandler ["Draw", "_this call jgdfk2"];
for "_i" from 0 to 9999 do
{
if (_i != 51) then
{
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};