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

I can not understand what you are gonna do exactly.
you want your character start running if he touches ground after falling but if touches the bottom of a pit keep falling and dying? !! @_@ !!