Download

Damage Help

So I have a simple player health system set up, but I don’t know how to make an enemy AI damage the player when it collides with the player. I would also like to know how to make a bullet mesh deal damage to the enemy AI when the mesh collides with the AI character.

No answers so bump.

Please only bump once every 4 days … excessive bumping should be avoided. Thanks.

Use a “sphere collision” or “capsule collision” to the player. Add an “on component begin overlap” event on the sphere collision on the player … when the AI character overlaps the trigger … “apply damage” to the player. You will need an “event any damage” on the player to handle the damage.

Bullet mesh will work the same way … “sphere collision” on the projectile → “on component begin overlap” event → “apply damage”.

This tutorial will explain you everything: https://www.youtube.com/watch?v=fjjaps9za5s :wink: