• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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