thebk150 2 Posted April 29, 2020 Share Posted April 29, 2020 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. Link to comment https://wrobot.eu/forums/topic/12095-calculate-distance-between-totem-and-player-target/ Share on other sites More sharing options...
Matenia 630 Posted April 29, 2020 Share Posted April 29, 2020 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 thebk150 1 Link to comment https://wrobot.eu/forums/topic/12095-calculate-distance-between-totem-and-player-target/#findComment-57914 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now