so I created a health stat variable on my characters and I want to work with this variable further by adding a 'hurt state' if the health falls below a certain value and then ultimately "kill" the character when the health is on 0.
So far I have been able to change this var by colliding the enemy with my bullets, but nothing changes when my values are reached.
In my case, I use a local variable enemy_health, that has a default value of 100.
I have set a condition that checks if the variable value is equal or less than 25, then the character should become "hurt".
Same goes for checking if the health is equal or less than 0, then the character should turn into a ragdoll.
None of these actions ever start when reaching my designated values. Am I missing something?
Customer support service by UserEcho