Originally Posted by VincentSDSH
Wow...this seems like a lot to get coords, am I doing this right?
Lua Code:
local x, y = C_Map.GetPlayerMapPosition( C_Map.GetBestMapForUnit("player") , "player" ):GetXY()
|
Or you could just do this:
Lua Code:
local positionData = C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"), "player")
And then use positionData.x and positionData.y
/edited because GetCurrentMapID is tied to the world map display