How do I stop the locomotion and play another animation?

I want my character to stop its movement, fall over and cough when its health reaches a critical value. I have the animation, I guess I know how to block all the characters movements, but how do I interrupt the locomotion (animation) graph and play the coughing animation instead?

Thanks in advance.

In the player’s BP, make a variable that gets this value (probably a boolean). Something like ‘bIsCritical’.

In the Event Graph of the Animation BP, cast into the player’s BP to get this boolean and assign it to a similar, new boolean variable inside the Event Graph (let’s call this, ABP Bool).

In the Animation Graph, make your new state node with the ‘critical’ animation on it. You’ll need to set up the transitions between them (the little arrows that connect the states). Inside the transitions (double click), set it up so that if “ABP Bool” is true, the transition can play.

If you are just getting started, check out the docs here: Animation Blueprints | Unreal Engine Documentation

There are also some really good tutorials on YouTube. - YouTube

Works like a charm. Thanks jmalaska!