AI Jitter/flinch on attack

What task is currently active?
In the most cases the tasks switch between attack movement and attack, also when they use melee sometimes they run in circles of each other and then one of them loses sight and switches to search target and run somewhere else and second one chasing him
 
Last edited:
It's the switch that is causing the issue. You have a few options:

- Adjust the behavior tree so the conditions for switching into the attack aren't as easy. This would be adjusting when the agent can be seen
- Add a wait task to the attack branch so it can't switch so quickly
- Adjust the behavior tree so attack movement has a higher priority and it reduces the amount that the attack branch is switched.
 
Back
Top