How do I make my character initiate a falling animation after running off a ledge or being hit off a ledge?

but you need to use the (not) of that variable as condition between falling state and idle state