use state machine

On a state machine you are

  • always on a state
  • you can only move from one state to other if there is a path from that state to the other
  • those paths have conditions, s you an have more than one exit from a state, but the conditions should be different.

So you will need to make a drawing of circles (states) for all the animations you have, then draw lines like you are idle and then you can go walking and then go running, so you know you cant jump from idle to running without passs walking first.

When you have that drawing, you will be able to make a similar one inside UE animation state machine.