Behaviour Tree and ABP bot working together

Hello there,
I have a simple Enemy that walks towards the player using a Behaviour Tree.

When the Enemy reaches the Player, BTT_SwingUpwards is triggered wich plays a attack Montage in the Enemy BP.
BTT_SwingUpwards:


In the Enemy BP:

My Problem is that, after the Montage is finished, it plays the walk cycle for a few frames and goes back to the swing when i am already in the acceptance radius.
It should just replay the attack animation when i am already in the radus.
Here is a Video of the Problem:

Any help is welcome thanks

So i found the solution:
I have a Notify a few frames before the Animation ends. This notify calls the “Call On Upwards Swing End” Event Dispatcher.

With this the Animation is cancelled and doesn’t have time to go to the idle state.
I also set the blend out time to 0 for this to work.

This is where i found the solution:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.