I found scripts for automation that set functions for determining the position of objects based on ObjectPosition. However, this does not function in tbc. Is it possible to determine the position of an object in space in tbc?
Example
function InLOS(obj1, obj2)
local x1, y1, z1 = ObjectPosition(obj1)
local x2, y2, z2 = ObjectPosition(obj2)
if not TraceLine(x1, y1, z1+2.25, x2, y2, z2+2.25, bit.bor(0x10, 0x100)) then
return true
end
return false
end