Edit: I tried setting the creep return guard global setting to the max, but this didn't solve the issue.
I have had this problem with every map I have ever tried to make where you have creeps trying to reach a point with battles along the way.
I give control of the units to a computer player and there is no AI. If they fight towers, everything is fine. However, if they fight other creeps, after the battle, any creeps that attacked but didn't give the final blow to any enemy creep will return back to where it was spawned and sit there.
What I have so far, is when a unit is created by say Player 1, it gives that creep control to player 11, a computer player, and it is issued the order to "Attack-Move" to a point at the other side of the map. He will go to that point as long as he doesn't encounter any opponent creeps. If he does, and he kills the creep, he will continue as ordered. However, if he attacks a creep, but a different creep kills it, he will return to the place he was spawned.
I've tried several different triggers but either they cause erratic behaviors or lots of mobs locking up or just simply don't work. Having a trigger reissue the attack-move order on any attacking mobs makes them pause and ruins the flow of battles.
How can I keep my creeps from returning to their spawn?
I have had this problem with every map I have ever tried to make where you have creeps trying to reach a point with battles along the way.
I give control of the units to a computer player and there is no AI. If they fight towers, everything is fine. However, if they fight other creeps, after the battle, any creeps that attacked but didn't give the final blow to any enemy creep will return back to where it was spawned and sit there.
What I have so far, is when a unit is created by say Player 1, it gives that creep control to player 11, a computer player, and it is issued the order to "Attack-Move" to a point at the other side of the map. He will go to that point as long as he doesn't encounter any opponent creeps. If he does, and he kills the creep, he will continue as ordered. However, if he attacks a creep, but a different creep kills it, he will return to the place he was spawned.
I've tried several different triggers but either they cause erratic behaviors or lots of mobs locking up or just simply don't work. Having a trigger reissue the attack-move order on any attacking mobs makes them pause and ruins the flow of battles.
How can I keep my creeps from returning to their spawn?