How to make AI not stop when playing a montage attack?

When the AI catches up with the player, it stops and attacks with a montage, then catches up again. It is necessary not to stop during the attack. how to do it?

How is your AI setup? Is it using behavior tree, state tree, or functions inside an ai controller class?

If using behavior trees, you could use a simple parallel node to run an attack task while the follow branch is running. Or set up a service that just always tries to attack when in range.

State tree gets a bit more complicated, but you can use async move to commands in a task so it can do two things at once while a state is active.

Or if you have something like that already setup and it’s stopping for no apparent reason, check to see if root motion is enabled on the montage.