• 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.

Dota like wave IA

Status
Not open for further replies.
Level 2
Joined
Nov 4, 2018
Messages
11
Hi guys, im working on a map and im trying to implement a minion wave on it. I made one and it works really weird, many times the units just decide that they dont want to attack-move to the point i ordered and they return to base. I made a trigger that goes every 5 seconds that reminds them to attack-move but sometimes they ignore it. What am i doing wrong? and what should i do?.
 
Level 2
Joined
Nov 4, 2018
Messages
11
They can lose their current order if stunned. DotA and such maps periodically re-issue the attack move order to the next path waypoint to prevent this.
I try that aswell, every 5 seconds i order them again to attack move, and in that case they move to the desired point for a sec and then they suddenly decide to return to base.
 
Level 12
Joined
Nov 3, 2013
Messages
989
You can detect when the units receive a "stops casting", "stop" or "move" order and re-order them to attack move again, this way they will only turn a around a bit before almost immediately continuing wherever you wanted them to go.

The only problem with this is if they become idle, e.g. from a stun. But there's supposed to be an "a unit becomes idle" or whatever event that's been recently added with the new updates.
 
Status
Not open for further replies.
Top