Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Perception > API/Runtime/AIModule/Perception/UAISense_Damage
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/Perception/AISense_Damage.h |
| Include | #include "Perception/AISense_Damage.h" |
| Source | /Engine/Source/Runtime/AIModule/Private/Perception/AISense_Damage.cpp |
UFUNCTION (BlueprintCallable, Category="AI|Perception",
Meta=(WorldContext="WorldContextObject", AdvancedDisplay="HitLocation"))
static void ReportDamageEvent
(
UObject * WorldContextObject,
AActor * DamagedActor,
AActor * Instigator,
float DamageAmount,
FVector EventLocation,
FVector HitLocation,
FName Tag
)
Remarks
EventLocation will be reported as Instigator's location at the moment of event happening