My character doesnt die

Hi! Im making a FPS game using the opsive Character Controller by Opsive and I am in the state where i can damage my enemies and my enemies can damage me but I used a method of collision that substracts a % of my health bar from the canvas and when I get to 0 health I dont die, I stay at 0 health. Also, i dont get damage animation because of the method I used for damaging my character. What I have to modify to get my death?

That depends on what happens in your script when you get to 0% health.

And just FYI that kind of question would go in the Scripting forum. Unity Engine - Unity Discussions

2 Likes