/
playerCoords = "-, -" |
mapID = C_Map.GetBestMapForUnit("player") |
if(mapID) then |
local pmp = C_Map.GetPlayerMapPosition(mapID,"player") |
if(pmp) then |
local x,y = pmp:GetXY() |
if(x and y) then |
playerCoords = format("%.1f, %.1f", x*100, y*100) |
end |
x,y = C_Map.GetPlayerMapPosition(mapID,"player"):GetXY() |
if(x and y) then |
playerCoords = format("%.1f, %.1f", x*100, y*100) |
end |
end |
end |