How can I know if the character is jumping?

Hi!

I’m learning about blueprint animation checking the Combat variant of the Third Person Template.

When I was checking how to set the jump animation I have found that it uses the Is Falling method of the Character movement component:

The rule checks the Is Falling variable and also the Velocity.Z > 100.0:

This confuse me because I don’t understand why they check the Is Falling variable to know the character is jumping. I thought falling came after jumping.

How can I know if the character is jumping? Or why the use the Is Falling variable to know if the player is jumping?

Thanks!

Falling is just a generic state in the character movement component used when the character is in the air but not flying. Behind the scenes, native jump command puts char into falling state and launches them up at the same time. Hence why Manny’s abp checks if falling is true and z velocity is positive. To know when a jump is transitioning to what one usually thinks of as falling, there’s also a bool you can set in the movement comp that triggers an event at the jump apex. Turn that on when you press jump (or if your ai controller tells an npc to jump) and set your own bool var indicating a jump has started. Like so:

And in begin play, bind a new event to On reached Jump Apex and clear the bool:

Ignore the wires going off screen to the right there. They’re doing other things to gravity scale.

Your anim bp can then grab the JumpStarted bool to use in transition rules.