m
{{wowapi}}
(use removedapi template) |
m ({{wowapi}}) |
||
| Line 1: | Line 1: | ||
{{removedapi|1.3.0| | {{wowapi}} | ||
{{removedapi|1.3.0|Replaced by [[API_GetPlayerMapPosition|GetPlayerMapPosition]]}} | |||
Returns the postion of a unit relative to the world. | Returns the postion of a unit relative to the world. | ||
| Line 17: | Line 15: | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
local | local locX, locY, locZ = GetCurrentPosition("player"); | ||
DEFAULT_CHAT_FRAME:AddMessage(locX .. ", " .. locY .. ", " .. locZ); | |||
;''Result'' | ;''Result'' | ||
1773.85, 63.06, -46.32 | 1773.85, 63.06, -46.32 | ||