hi, i want to get the world position ( x,y ) when the player click somewhere inside the f11 map.
this is what i have so far:
function onMapShow(key, keystate)
if keystate == "down" then
if isPlayerMapVisible () then
showCursor(true)
else
showCursor(false)
end
end
end
bindKey ( "F11", "down", onMapShow)
function mapclick(button, state, x, y)
if state == "down" then
if isPlayerMapVisible () then
local minX, minY, maxX, maxY = getPlayerMapBoundingBox ()
if x >= minX and x <= maxX then
--HERE I WANT TO GET THE WORLD POSITION
end
end
end
end