# Actors Not Receiving Point Damage from Line Trace

**URL:** <https://forums.unrealengine.com/t/actors-not-receiving-point-damage-from-line-trace/576604>\
**Category:** C++\
**Tags:** Raycast, unreal-engine, UE5-0, question\
**Created:** [June 8, 2022, 1:35am UTC](https://forums.unrealengine.com/t/actors-not-receiving-point-damage-from-line-trace/576604 "2022-06-08T01:35:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GV-Rafael-III](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GV-Rafael-III](https://forums.unrealengine.com/u/GV-Rafael-III)\
**Post date:** [June 8, 2022, 1:35am UTC](https://forums.unrealengine.com/t/actors-not-receiving-point-damage-from-line-trace/576604/1 "2022-06-08T01:35:36Z")

</div>

For a shooter project, I created a health component to place on the player and enemy actors. I bound events for the component’s owner receiving point and radial damage within the component itself:

> GetOwner()-\>OnTakePointDamage.AddDynamic(this, &UHealthSystem::TakePointDamage);  
> GetOwner()-\>OnTakeRadialDamage.AddDynamic(this, &UHealthSystem::TakeRadialDamage);

I’m focused on getting point damage right before worrying about radial damage. I have a weapon actor that performs a line trace for hitscan shooting, which is supposed to apply point damage:

> UGameplayStatics::ApplyPointDamage(HitResult.GetActor(), WeaponStats.Damage, HitResult.TraceStart, HitResult, GetInstigatorController(), this, UDamageType::StaticClass());

My syntax is fine as far as I can tell; logging has confirmed that the right actors are being hit by the line trace. And yet I don’t understand why point damage isn’t being applied…and I made sure to copy the parameters that I found for OnTakePointDamage:

> UFUNCTION()  
> void TakePointDamage(AActor\* DamagedActor, float Damage, class AController\* InstigatedBy, FVector HitLocation, class UPrimitiveComponent\* FHitComponent, FName BoneName, FVector ShotFromDirection, const class UDamageType\* DamageType, AActor\* DamageCauser);

I’ve hit a roadblock. Does anyone know what the issue might be?

---

<div class="post-metadata">

**Author:** ![GV-Rafael-III](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GV-Rafael-III](https://forums.unrealengine.com/u/GV-Rafael-III)\
**Post date:** [June 8, 2022, 3:47am UTC](https://forums.unrealengine.com/t/actors-not-receiving-point-damage-from-line-trace/576604/2 "2022-06-08T03:47:19Z")

</div>

Marking this post as Resolved; I did some more experimenting and managed to get point damage applications working. I was either because I needed to use

> GetOwner()-\>GetInstigatorController()

as the event instigator, or because the weapons I was using for testing still had damage values of 0 when I first tried.
