How do I make a flip book animation play when ever the players character/actor gets hit

Your question is about how to apply damage or how to play flipbook animations?