Need help with action & property.

Ok, I have a property set with a value of 5, and everytime the “actor” is hit, the variable decreases by 1. What I need now is to have it set where when the variable reaches 0 my “actor” plays a dying animation. Can someone help me?

Hello

add a Property Sensor > Equal > Prop:the property name > Value:0 linked to AND and to a Action Actuator with the name of the Dying action
Is this clear?
Bye

It was clear to me OTO even though I had no interest in it and was just looking at the post. I do like to congratulate people when they write clear and consise answers,documentation for scripts or tutorials. Since that is rare sometimes in the blender world. So congratulations.

You welcome :expressionless:

Thanks. Man you are a life saver.