Getting the name of an animation that is playing

Hello all, I wanted to ask a question, and I hope I don’t seem to much like simpleton here. I tried to find the answer by searching with no avail. All I want to do is to get the name of the animation that an enemy character is using. For example, is the enemy kicking, punching, etc basically to differentiate what should be done next based on what animation the enemy is using. Its hard to filter through the documentation to get this exact answer. Please if you can explain what is used that would be great. For example, if one were to answer by say use notifies, it would be nice to go in a basic way how to go about doing it. But of course any help, fully complete or not, is help appreciated. Thank you.