How to put Damage onto my AI Character

witchylabpup

New member
Hello,

My AI character needs to have a healthbar, take damage when hit by bullets, and eventually die. I've looked through the documentation and am just a bit confused. Could you please help me?

Thank you so much for your time.
 
If your agent is built with the character controller then the CharacterHealth component will allow the agent to take damage and die. A floating healthbar isn't included but you could take a look at the AttributeMonitor for an example of how to do it. The AttributeMonitor is used for the screen space health bars.
 
Top