Waiting for action to complete?

I am using collision detection to animate a character to attack the player. I have everything set up so that when you come near, the creature will run its ‘I notice you and now I attack’ animation. However, the very next logic brick is a “Restart Scene”. When I activate the collision between the two, it begins playing the music I tell it to, then it does the animation, but it doesn’t wait for the animation to finish before going to the Restart Scene brick. How can I accomplish this?

Thanks,

Bill

Delay restart scene actuator using timer - set timer value on collision and use property sensor on timer to check, if whole animation was played. Then file restart scene actuator.