# Is there a C++ equivalent to a report damage event?

**URL:** <https://forums.unrealengine.com/t/is-there-a-c-equivalent-to-a-report-damage-event/1897750>\
**Category:** AI\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, CPP\
**Created:** [June 10, 2024, 3:08pm UTC](https://forums.unrealengine.com/t/is-there-a-c-equivalent-to-a-report-damage-event/1897750 "2024-06-10T15:08:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![N1k\_T0k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@N1k\_T0k](https://forums.unrealengine.com/u/N1k_T0k)\
**Post date:** [June 10, 2024, 3:08pm UTC](https://forums.unrealengine.com/t/is-there-a-c-equivalent-to-a-report-damage-event/1897750/1 "2024-06-10T15:08:27Z")

</div>

I need to report damage, but i cant find any function like this  
 ![Снимок экрана 2024-06-10 152700](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/d/41da8d8d12a4a925fd695a0ab1abb13b49299b0a.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [June 12, 2024, 6:15pm UTC](https://forums.unrealengine.com/t/is-there-a-c-equivalent-to-a-report-damage-event/1897750/2 "2024-06-12T18:15:03Z")

</div>

it’s inside of AISense\_Damage.h the function ReportDamageEvent

```auto
// EventLocation will be reported as Instigator's location at the moment of event happening
UFUNCTION(BlueprintCallable, Category = "AI|Perception", meta = (WorldContext="WorldContextObject", AdvancedDisplay="HitLocation"))
static AIMODULE_API void ReportDamageEvent(UObject* WorldContextObject, AActor* DamagedActor, AActor* Instigator, float DamageAmount, FVector EventLocation, FVector HitLocation, FName Tag = NAME_None);

```

![ai_sense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/8/0d8bc674b64b9a66fb3b00e7c11744c9fee48180.png)

> **[Uai Sense Damage | Unreal Engine 5.4 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/AIModule/Perception/UAISense_Damage)**

Also make sure to include [AIModule](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/AIModule) in your build file

---

<div class="post-metadata">

**Author:** ![N1k\_T0k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@N1k\_T0k](https://forums.unrealengine.com/u/N1k_T0k)\
**Post date:** [June 16, 2024, 6:50am UTC](https://forums.unrealengine.com/t/is-there-a-c-equivalent-to-a-report-damage-event/1897750/3 "2024-06-16T06:50:23Z")

</div>

thanks a lot
