WoW:API GetCurrentPosition: Difference between revisions

clarification...GetCurrentPosition and GetPlayerMapPosition kinda got crossed.
No edit summary
 
(clarification...GetCurrentPosition and GetPlayerMapPosition kinda got crossed.)
Line 3: Line 3:
Returns the postion of a unit relative to the world.
Returns the postion of a unit relative to the world.


  loc = GetPlayerMapPosition("unit");
  loc = GetCurrentPosition("unit");


----
----
Line 15: Line 15:
----
----
;''Example''
;''Example''
  local loc = GetPlayerMapPosition("player");
  local loc = GetCurrentPosition("player");
   
   


;''Result''
;''Result''
1773.85, 63.06, -46.32
1773.85, 63.06, -46.32
----
;Note: As of Interface 1300, this function is deprecated. Use [[API_GetPlayerMapPosition|GetPlayerMapPosition]] instead.


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