WoW:API GetPlayerMapPosition: Difference between revisions

mNo edit summary
Line 29: Line 29:


: If both posX and posY are exactly 0, the position is unknown, unknowable, or not valid for the current map, i.e.
: If both posX and posY are exactly 0, the position is unknown, unknowable, or not valid for the current map, i.e.
:* The player is inside an instance: the game will never return coordinates inside an instance. (CHANGED AS OF 3.0.1 - coordinates are returned within instances) (CHANGED again AS OF 3.0.3 - coordinates are no longer returned inside instances)
:* The player is inside an instance: the game will never return coordinates inside an instance. (CHANGED AS OF 3.0.1 - coordinates are returned within instances) (CHANGED again AS OF 3.0.3 - coordinates are no longer returned inside instances) (CHANGED again. In 3.1.1 (possibly earlier) coordinates are being returned in instances.)
:* The map hasn't been updated yet; either open the map or use [[API SetMapToCurrentZone|SetMapToCurrentZone]]() after entering a new zone
:* The map hasn't been updated yet; either open the map or use [[API SetMapToCurrentZone|SetMapToCurrentZone]]() after entering a new zone
:* An unsupported [[unitId]] was given.
:* An unsupported [[unitId]] was given.
Anonymous user