Transitioning between two animations upon being hit by car

I have two animations my main one is an Ai Controller it walks to random navigation points, my other one is a falling animation. I need to get the walk animation to stop and play the falling down animation when hit by car. And also stop the character movement. If anyone can help me with this that would be great. Thanks for your time.