One-time animation playback

When you press the key, the animation should be played once, and then return to the standard character animation, and to restart the animation, you need to press the key again. To put it more clearly, it is necessary that after the animation is completed, the variable that is responsible for starting the animation is inverted, so that the character can return to its original state.

Hey @Metallic_emperor!

What exactly is the question/ issue here? It’s a bit hard to tell given the context provided. Can you explain what is going wrong and be more clear what the end result should be? Also, could you share screenshots of your blueprints and what is happening with your animation?

Any additional specifics you provide can go a long way in solving your problem!

Here is a character Blueprint.


There Animation Blueprints




I need the attack animation to work once (like in all platformers). And here’s how it works now.
2023-02-18 10-01-33.mkv (5.2 MB)

If I just press a key, the animation immediately stops, and if I hold it down, the character starts playing this animation until I release the key
UPD
I tryed to use Play Montage, but this not helped
2023-02-18 10-40-09.mkv (5.8 MB)
Animation stoping in the begining
UPD
Maybe, it hapening because animation very short (10 Frames)
UPD
Yes this happened because animation was very short. I make it little bit longer and there is.
TRIGGERED

Hey @Metallic_emperor!

Those are some updates! So after extending out your animation, your issue resolved itself?

yes