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 locX, locY, locZ = GetCurrentPosition("player"); DEFAULT_CHAT_FRAME:AddMessage(locX .. ", " .. locY .. ", " .. locZ); Result 1773.85, 63.06, -46.32
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - 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 locX, locY, locZ = GetCurrentPosition("player"); DEFAULT_CHAT_FRAME:AddMessage(locX .. ", " .. locY .. ", " .. locZ); Result 1773.85, 63.06, -46.32
|
dbkwik:wowwiki/pro...iPageUsesTemplate
| |
abstract
| - 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 locX, locY, locZ = GetCurrentPosition("player"); DEFAULT_CHAT_FRAME:AddMessage(locX .. ", " .. locY .. ", " .. locZ); Result 1773.85, 63.06, -46.32
|