ObjectWorldPosition

Returns the world position of a WowGameObject.

This is the position with any transport object accounted for.

ObjectWorldPosition(--[[(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 = ObjectWorldPosition('player')

Do something with the position of all objects.

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