Jump to content

Recommended Posts

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
Link to comment
https://wrobot.eu/forums/topic/12262-objectposition/
Share on other sites

42 minutes ago, Matenia said:

Dude idk what that code is even supposed to be. This is literally some random code (looks like Lua). It means nothing.
Also you don't even own a wRobot license. You're not getting any help here.

It was FireHack API not wow.

Link to comment
https://wrobot.eu/forums/topic/12262-objectposition/#findComment-58789
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...