# Apply Damage 

**URL:** <https://forums.unrealengine.com/t/apply-damage/2452909>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 12, 2025, 1:10pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909 "2025-04-12T13:10:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpiderProwler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpiderProwler](https://forums.unrealengine.com/u/SpiderProwler)\
**Post date:** [April 12, 2025, 1:10pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909/1 "2025-04-12T13:10:21Z")

</div>

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

 ![Screenshot 2025-04-11 191749](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/0/a208e99ec646f7441a917501945c0803e303f10c.png)  
 ![Screenshot 2025-04-11 191812](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/2/a0208a5c085ffd2d8a7d3a70d3e7d8680c9313bc.png)  
 ![Screenshot 2025-04-11 191847](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/5/de5165ab35214652c5cd97c6e1d65a07f43dcc9d.png)

This is for the enemy to give damage to the player

 ![Screenshot 2025-04-11 193423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/8/a08dd6b0d1c83063dde60f65d3da0050f13c620a.png)

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.

 ![Screenshot 2025-04-11 194525](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/1/521d954de91b892f4aae11273d3ea6da6536a9ff.png)

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.

 ![Screenshot 2025-04-11 192046](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/1/9a18db49f54775e24efe93ebd6974e977554d58e.png)

Can someone help, please?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [April 12, 2025, 1:41pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909/2 "2025-04-12T13:41:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ElectricRhino597](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ElectricRhino597](https://forums.unrealengine.com/u/ElectricRhino597)\
**Post date:** [April 12, 2025, 2:28pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909/3 "2025-04-12T14:28:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jetboy\_hrn1990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jetboy\_hrn1990](https://forums.unrealengine.com/u/jetboy_hrn1990)\
**Post date:** [April 12, 2025, 3:24pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909/4 "2025-04-12T15:24:23Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/2/8726d8e63ef5db42527f35e5fe7482cc4e0274d7.png)  
Server Only

---

<div class="post-metadata">

**Author:** ![SpiderProwler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpiderProwler](https://forums.unrealengine.com/u/SpiderProwler)\
**Post date:** [April 23, 2025, 8:16pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909/5 "2025-04-23T20:16:56Z")

</div>

heyo! Sorry for the late reply, i’ve been pretty busy…  
How should i check the array size? I’ve insert “pawn” in the array, and also yea probably there’s something wrong with the sphere but i can’t really tell what because i’m a beginner and still learning this all

---

<div class="post-metadata">

**Author:** ![SpiderProwler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpiderProwler](https://forums.unrealengine.com/u/SpiderProwler)\
**Post date:** [April 23, 2025, 8:17pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909/6 "2025-04-23T20:17:57Z")

</div>

makes no sense because as i’ve said if i press a button the player will receive the damage from apply damage function

---

<div class="post-metadata">

**Author:** ![SpiderProwler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpiderProwler](https://forums.unrealengine.com/u/SpiderProwler)\
**Post date:** [April 23, 2025, 8:24pm UTC](https://forums.unrealengine.com/t/apply-damage/2452909/7 "2025-04-23T20:24:49Z")

</div>

the location is “world location” and the target is “attack sphere” (variable type:sphere collision).  
I didn’t understood where to put the breakpoint/print string for the notify, can you send a screenshot please?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [April 24, 2025, 2:15am UTC](https://forums.unrealengine.com/t/apply-damage/2452909/8 "2025-04-24T02:15:34Z")

</div>

> [@SpiderProwler](#):
>
> world location

the world location of what?

you can put a print string on the worldlocation, this tells you 2 things, is the location correct and does the event even fire

---

<div class="post-metadata">

**Author:** ![SpiderProwler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpiderProwler](https://forums.unrealengine.com/u/SpiderProwler)\
**Post date:** [April 24, 2025, 7:43am UTC](https://forums.unrealengine.com/t/apply-damage/2452909/9 "2025-04-24T07:43:27Z")

</div>

Okay, so deal damage is an event that will be executed when the notify begins, i just checked right now with a breakpoint on the “deal damage” and the game doesn’t stop sp this means there’s a problem with the notify, what that might be?

---

<div class="post-metadata">

**Author:** ![ElectricRhino597](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ElectricRhino597](https://forums.unrealengine.com/u/ElectricRhino597)\
**Post date:** [April 29, 2025, 10:01am UTC](https://forums.unrealengine.com/t/apply-damage/2452909/10 "2025-04-29T10:01:55Z")

</div>

Hey, how things going on? You should place your mouse on “OutActors” and you will know the size of “Out Actors” array like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/9/99916f69f9f46b60af7022e59b141fe8f20aa38c.png)  
If array size is zero, check out your sphere.

---

<div class="post-metadata">

**Author:** ![ElectricRhino597](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ElectricRhino597](https://forums.unrealengine.com/u/ElectricRhino597)\
**Post date:** [April 29, 2025, 10:10am UTC](https://forums.unrealengine.com/t/apply-damage/2452909/11 "2025-04-29T10:10:18Z")

</div>

Did you do it like this? If so, your animation may not be played at the position of notification or you can add “print hello” following the AnimNofity\_.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/e/5ae76ae9bc42494194c3e03456be1c3e97e4e7a1.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/b/7cb0627ceb41916efa80be12cb5f4a85ed0d7f5f.jpeg)

---

<div class="post-metadata">

**Author:** ![SpiderProwler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpiderProwler](https://forums.unrealengine.com/u/SpiderProwler)\
**Post date:** [July 25, 2025, 11:15am UTC](https://forums.unrealengine.com/t/apply-damage/2452909/12 "2025-07-25T11:15:25Z")

</div>

Hey bud, i’ve gotta ask you sorry for the late reply, i probably found the solution right now, the notify wasn’t firing at all because i forgot to call it in the enemy’s ABP. Thank you and sorry again 🙏😅

---

<div class="post-metadata">

**Author:** ![SpiderProwler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpiderProwler](https://forums.unrealengine.com/u/SpiderProwler)\
**Post date:** [July 25, 2025, 11:16am UTC](https://forums.unrealengine.com/t/apply-damage/2452909/13 "2025-07-25T11:16:47Z")

</div>

probably i’ve found the solution, i forgot to call the notify in the Enemy ABP
