# ApplyRadialDamage doesn't work

**URL:** <https://forums.unrealengine.com/t/applyradialdamage-doesnt-work/485599>\
**Category:** Character & Animation\
**Tags:** health, damage, unreal-engine, question\
**Created:** [June 30, 2021, 11:11pm UTC](https://forums.unrealengine.com/t/applyradialdamage-doesnt-work/485599 "2021-06-30T23:11:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6274d35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6274d35](https://forums.unrealengine.com/u/anonymous_user_b6274d35)\
**Post date:** [June 30, 2021, 11:11pm UTC](https://forums.unrealengine.com/t/applyradialdamage-doesnt-work/485599/1 "2021-06-30T23:11:45Z")

</div>

I have a Character and Damage Actor, which has capsule component.  
So, [as you can see](https://i.ibb.co/hCmTPnk/image.png), while the character is inside that Damage Actor damage doesn’t applies. The Log here is the result of ApplyDamage function (which’s return type is bool)

The DamageActor has the following code in Tick function:

```
DrawDebugSphere(GetWorld(), GetActorLocation(), Radius, 24, SphereColor);
WasDamageApplied = UGameplayStatics::ApplyRadialDamage(GetWorld(), Damage, GetActorLocation(), Radius, nullptr, {}, this, nullptr, DoFullDamage);
UE_LOG(LogDamageActor, Display, TEXT("Apply: %s"), ( WasDamageApplied ? TEXT("true") : TEXT("false") ));

```

The Character has a HealthComponent (which inherits from ActorComponent class). In BeginPlay function it has following lines:

```
AActor* ComponentOwner = GetOwner();
if (ComponentOwner)
    {
        ComponentOwner->OnTakeAnyDamage.AddDynamic(this, &USTUHealthComponent::OnTakeAnyDamage);
    }

```

and the function of HealthComponent OnTakeAnyDamage just decreases health variable and make an ue\_log, which doesn’t appears to be in output log. So probably the issue is with applyradialdamage function.  
If you need anything else ask, thanks.

---

<div class="post-metadata">

**Author:** ![CtnDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ctndev/32/1133321_2.png) [@CtnDev](https://forums.unrealengine.com/u/CtnDev)\
**Post date:** [July 1, 2021, 8:04am UTC](https://forums.unrealengine.com/t/applyradialdamage-doesnt-work/485599/2 "2021-07-01T08:04:33Z")

</div>

This design is pretty familiar 🙂 Whats is your target, target dummy or a character ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6274d35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6274d35](https://forums.unrealengine.com/u/anonymous_user_b6274d35)\
**Post date:** [July 1, 2021, 1:12pm UTC](https://forums.unrealengine.com/t/applyradialdamage-doesnt-work/485599/3 "2021-07-01T13:12:08Z")

</div>

So, All I needed to do is to make location of DamageActor by Z a bit higher. The issue was that actor’s center of sphere was in floor mesh (which is brush btw), so this mesh was blocked i guess.

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [May 4, 2023, 4:38pm UTC](https://forums.unrealengine.com/t/applyradialdamage-doesnt-work/485599/4 "2023-05-04T16:38:15Z")

</div>

Hmm… This worked for me too… I don’t understand why, though :s

---

<div class="post-metadata">

**Author:** ![utopia.Game2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/utopia.game2/32/763789_2.png) [@utopia.Game2](https://forums.unrealengine.com/u/utopia.Game2)\
**Post date:** [November 28, 2023, 2:14pm UTC](https://forums.unrealengine.com/t/applyradialdamage-doesnt-work/485599/5 "2023-11-28T14:14:22Z")

</div>

YYYAAAAA , finally its solved by your guild , thanks man … i +100 to z of location and its worked \<3
