This sounds like really good advice! I've been having an issue in my own game where stunning enemies made them lose their "ai." I found a work-around by giving stunning behaviors a dummy effect once they end and then picking that effect up in triggers and basically redoing their attack command. This is a much better solution, way less messy!
There's a store point for unit action. You could store the point they're supposed to hang around, and check if they are near it. If not issue them to move/attack back to it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a few "camps" where the heroes can go and kill units for money.
If they chase the heroes however, and get stunned, sometimes they stay out of their camps.
Is there any way i can change this?
My first thought was to save all the "points" where the unit normally stands and trigger it to move back.
But im not sure how to do that. If one unit die, doesnt the array get screwed up?
Thanks!
do not stun them, use a 0.01 movement factor and disable attack / abilities. prevents alot of headache for alot of things.
@FunkyUserName: Go
This sounds like really good advice! I've been having an issue in my own game where stunning enemies made them lose their "ai." I found a work-around by giving stunning behaviors a dummy effect once they end and then picking that effect up in triggers and basically redoing their attack command. This is a much better solution, way less messy!
There's a store point for unit action. You could store the point they're supposed to hang around, and check if they are near it. If not issue them to move/attack back to it.