How can I play a animation only once?

Hi

I have a animation for a attack for my player. Now I want to play this animation when I press a mousebutton.

Is there a way to get it so that it can go from any state in to this animation, play it once and then go back to the previous state?

(The important part is to get it to play only once and returne to the previous. I know how to get from any state into the attack animation)

thanks in advance

8351289--1098948--upload_2022-8-10_17-58-1.png

Did you make sure Loop Time is NOT checked in the animation?

1 Like

Yes

But then it just gets stuck at the last frame and doesnt go back to the previous animation. But I’ve now done it with a bool which is true for the time of the animation playing once. That probably takes more effort than needed but it works.

Thanks anyways

Ok, you prob need something like this with a trigger

8352033--1099044--upload_2022-8-10_22-26-45.png

1 Like