Jump to content

Recommended Posts

How would I go about determining the distance between one of my totems and my target?  I want to be able to ensure that the distance between my Searing Totem and my current target is less than 30 to ensure that the totem can hit my current target.

Find totem in objectmanager by name or entry, then confirm it's your pet (IsMyPet property) and check unit.Position.DistanceTo(ObjectManager.Target.Position) <= 30

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...