• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Attack When In Range?

Status
Not open for further replies.
Level 4
Joined
Apr 5, 2008
Messages
90
I'm having trouble finding out how to make a unit, attack another unit when in range. For example, take for instance the DotA mod:

A sentinel solider walks down the road, comes within range of a ghoul, and then attacks it without having a player commanding it to.

In my mod, however, when a pack of Footmen stroll down the road, they completely ignore the incoming Grunts.

Any help?
 
Level 11
Joined
Jun 21, 2007
Messages
505
You can also order units to Attack-move in the game by clicking on Attack order button while having a unit selected, and order it attack an area on the ground, not a unit.

The unit with attack-move order will move to its destination, engaging in fight with any enemies it encounters on its way.
 
Status
Not open for further replies.
Top