What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Make ranged classes attack at range instead of melee.

Stove

New Member
Joined
Apr 10, 2012
Messages
182
Reaction score
9
Right now my demon hunter goes almost to melee range before shooting monsters. I've set kill radius to 70, Max attack range in settings to 70 and my plugin has the following movement code:
Code:
                    if (!IsUnitNear(50))
                    {
                        navigateTo(v);
                    }

How can i make my Demon Hunter attack at, say, 60 yards instead of 15?
 
It's just a simple check for nearby monsters withing X range, and attack the nearest with a spell selected from a list :P
 
Back
Top