Hello! I’m trying to make additional animations like evasion, hit and others. But if I’m adding animation in anim bp and using “play montage” node, then my character is freezing on last frame of animation in case of spamming evasion button.
My evasion function:
I suppose this is happening because transition rule from evade to idle don’t have time to work.
I have tried to disable input while animation is playing but it doesn’t work.
Maybe, I shouldn’t use to play montage and just replace it with something like calculation of animation’s length and delays?
You are right. But how to say that evading bool become false, so character can return to idle? With montage we have “On completed” pin for that purpose. I don’t know how to make it without montage(
You can open up your animation and step to the end of it to see how long it actually runs for in seconds and just do a delay for that duration and then set it back to false…
Maybe instead off of “On Completed” just pull off the regular output pin and set a delay for however many seconds/minutes and then set it to false. You shouldn’t have to adjust the play rate…
Looking a little closer, maybe because you’re using “Play Montage” it’s giving you the trouble? Not sure I haven’t used that node much, but I know “Play Anim Montage” works for me and also to fix the spamming issue just do something like I have in the screen shot. I excluded some of the things you have on your line of code for simplicity, but it should at least fix the spamming issue.