Apply Damage

On Unreal Engine 5.3 i 'm trying to make the player receive damage from the Enemy AI but somehow it won’t work.

This is for the player to receive damage



This is for the enemy to give damage to the player

I’ve created a notify inside the Enemy attack animation and when the animation comes to the notify part (which is when the Enemy will hit the player) it will deal damage to the player.

Now when i test this, go in front of the Enemy and let him attack me, nothing happens. The Player Healthbar won’t go down nor the player will play the hit reaction animations, but if i make the player be damaged when i press a keyboard button instead, it will work.

Can someone help, please?

lots going on here, two places to start

  1. I cant see where you get the location for SphereOverlapActors. Maybe put a breakpoint/printstring to see what, if anything it hits.
  2. make sure your notify actually triggers, same thing. breakpoint or printstring

Hey, the last screenshot shows that your character “Event AnyDamage” runs normal so the problem should be enemy logic. Here is what you should do:

  • Add breakpoint at “For Each Loop” in enemy blueprint.
  • Then check the “Out Actors” array size to make sure your character is included.

If it is not, you should check out your sphere overlap.


Server Only