how to make someone die

how do you have someone die when they have zero health? lets say they die after a certain amount of hits? i have no idea how to do that, please help!

Your title creeped me out :stuck_out_tongue:

In the big lines, this is what you want a living entity to do when it dies :

  • Stop the IA and any component other than the renderer and mesh.
  • Play an animation. It can be the character falling, exploding etc. It’s usually a prefab just for that replacing you the entity.
  • After sometimes, being destroyed so it doesn’t just lay there slowing the rest.
  • Maybe loot some objects.

That’s not exhaustif, just what came to my mine right now.