WoW:API GetPlayerMapPosition: Difference between revisions

Added minor info about the 0,0 error and SetMapToCurrentZone.
mNo edit summary
(Added minor info about the 0,0 error and SetMapToCurrentZone.)
Line 19: Line 19:
:;posY : Number - Y value of the unit position (a proportion between 0 and 1, relative to WorldMapDetailFrame)
:;posY : Number - Y value of the unit position (a proportion between 0 and 1, relative to WorldMapDetailFrame)


If both posX and posY are 0, then the position is unknown, unknowable, or not valid for the current map.
If both posX and posY are 0, then the position is unknown, unknowable, or not valid for the current map. This usually happens inside an instance, if the map hasn't been updated (by either opening the map or using [[API_SetMapToCurrentZone|SetMapToCurrentZone]]) after entering a new zone, or using a [[API TYPE UnitId|UnitId]] other than the ones above.


----
----
Anonymous user