Hello Errybody I have a quick question.. I gave players an ability to stun the enemy. This causes the enemy that was on patrol to become stunned for five seconds and stay still forever. How do I make the enemy unit continue its last action before it was stunned after the five seconds?
Yep the unit gets stunned but if it was on patrol before it gets stunned that command becomes deactivated. I want the unit to continue to go on patrol after it gets stunned.
Seems I need to test the stunned flag. I used a custom stun system, before the flag was introduced, and I assumed, it would fix these issues. If it doesn't, I need to find the stun system again, that one worked for these kinds of situations.
€ a quick test showed, that a patrolling unit keeps the patrol order, when affected by a stun behavior. It resumes patrolling normally, after the stun wears off. Would you mind posting an example map showing your failing version of the stun?
Thanks a lot Kueken! I made an improper way to stun units. I did it through the modify flags and not the state flags that already has the stun as you mentioned.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello Errybody I have a quick question.. I gave players an ability to stun the enemy. This causes the enemy that was on patrol to become stunned for five seconds and stay still forever. How do I make the enemy unit continue its last action before it was stunned after the five seconds?
How exactly did you realize the stun? If you applied a behavior with the Stunned flag enabled, the unit should behave exactly as you want.
@Kueken531: Go
Yep the unit gets stunned but if it was on patrol before it gets stunned that command becomes deactivated. I want the unit to continue to go on patrol after it gets stunned.
Seems I need to test the stunned flag. I used a custom stun system, before the flag was introduced, and I assumed, it would fix these issues. If it doesn't, I need to find the stun system again, that one worked for these kinds of situations.
€ a quick test showed, that a patrolling unit keeps the patrol order, when affected by a stun behavior. It resumes patrolling normally, after the stun wears off. Would you mind posting an example map showing your failing version of the stun?
@Kueken531: Go
Thanks a lot Kueken! I made an improper way to stun units. I did it through the modify flags and not the state flags that already has the stun as you mentioned.