WoW:API GetCurrentPosition: Difference between revisions
Jump to navigation
Jump to search
GetCurrentPosition -Documentation by Pilum-
No edit summary |
(use removedapi template) |
||
| Line 1: | Line 1: | ||
{{removedapi|1.3.0|It was replaced by [[API_GetPlayerMapPosition|GetPlayerMapPosition]]}} | |||
<center>'''GetCurrentPosition''' ''-Documentation by [[user:Pilum|Pilum]]-''</center> | <center>'''GetCurrentPosition''' ''-Documentation by [[user:Pilum|Pilum]]-''</center> | ||
| Line 21: | Line 23: | ||
1773.85, 63.06, -46.32 | 1773.85, 63.06, -46.32 | ||
---- | ---- | ||
{{WoW API}} | {{WoW API}} | ||
Revision as of 21:00, 23 May 2006
This is no longer a part of the World of Warcraft API.
|
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