• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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