ObjectPosition

Returns the position of a WowGameObject.

ObjectPosition(--[[(1)]]objectReference) : x, y, z
  1. See Object Reference for more information on possible values.

Example

Get the players current position.

local x, y, z = ObjectPosition('player')

Do something with the position of all objects.

for i, object in ipairs(Objects()) do
local x, y, z = ObjectPosition(object)
-- do something with x, y, z
end