Enemy AI anim Montage doesn't play whole animation

Hey guys!
Hope everything is good.

So, i’m in a bit of a annoying situation.
I have this AI set to attack the player but the attack animation does not play fully and starts again but if i walk away it plays completely. I did every tutorial saying to put the blend in/out at 0 but nothing works.
What am i doing wrong?


1 Like

Hello!

If I were you, I would see how the execution pulse (the orange execution line) is running during gameplay (you can hit the play button directly inside/above the blueprint. Just make sure that the adjacent debug window is populated). I would also add a PRINT_STRING node right before the PLAY_MONTAGE node to see if you’re getting multiple firings.

Yes. It does fire multiple times with the PRINT_String.

Okay, then try adding a DO_ONCE node, and then once the attack is finished, create a CUSTOM_EVENT function that resets that SAME NODE.

For reference:

1 Like

Thank you so much!
It worked!

1 Like

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