Animation Issue (Solved)

I am making an elephant enemy for a game. I was almost done, when I found a problem.
In order to control the elephant, I am using a script (included). When the cpu hits the blue cube it is supposed to play a dying animation and then explode. It explodes fine…its just the animation that is bad, I have it set up so that it plays the animation then switches states.

You will be able to see better if you see the blend:
I had to upload it as a zip because the scripts are separate.

Solved it! All I had to do is change the state actuator to Add. I guess the animation wasn’t getting to play because of the state change…