WoW:API GetCurrentPosition: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(clarification...GetCurrentPosition and GetPlayerMapPosition kinda got crossed.)
No edit summary
Line 24: Line 24:
----
----
;Note: As of Interface 1300, this function is deprecated. Use [[API_GetPlayerMapPosition|GetPlayerMapPosition]] instead.
;Note: As of Interface 1300, this function is deprecated. Use [[API_GetPlayerMapPosition|GetPlayerMapPosition]] instead.


----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API World Map Functions|GetCurrentPosition]]

Revision as of 05:21, 4 January 2006

GetCurrentPosition -Documentation by Pilum-

Returns the postion of a unit relative to the world.

loc = GetCurrentPosition("unit");

Returns
locY, locX, locZ as one string.
locY
Number - Y value of the player's position.
locX
Number - X value of the player's position.
locZ
Number - Z value of the player's position (0 is sea level).

Example
local loc = GetCurrentPosition("player");

Result

1773.85, 63.06, -46.32



Note
As of Interface 1300, this function is deprecated. Use GetPlayerMapPosition instead.



Template:WoW API