Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetCurrentPosition
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi|removed=1.3.0|replace=Replaced by {{api|GetPlayerMapPosition}}}} Returns the position of a unit relative to the world. local loc = GetCurrentPosition("unit") == Parameters == === Returns === * 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 locX, locY, locZ = GetCurrentPosition("player"); DEFAULT_CHAT_FRAME:AddMessage(locX .. ", " .. locY .. ", " .. locZ); ;Result 1773.85, 63.06, -46.32 == Notes == * Removed in patch 1.3.0. Use the more specific {{api|GetPlayerMapPosition}} instead.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Ambox
(
edit
)
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:WoW/removedapi
(
edit
)
Template:Wowapi
(
edit
)