UAISense_Damage

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/Perception/AISense_Damage.h

Include

#include "Perception/AISense_Damage.h"

Syntax

class UAISense_Damage : public UAISense

Variables

Name Description

Public variable

TArray< FAIDama...

 

RegisteredEvents

Constructors

Name Description

Public function

UAISense_Damage

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

RegisterEvent

(
    const FAIDamageEvent& Event
)

Public function Static

void

 

ReportDamageEvent

(
    UObject* WorldContextObject,
    AActor* DamagedActor,
    AActor* Instigator,
    float DamageAmount,
    FVector EventLocation,
    FVector HitLocation,
    FName Tag
)

EventLocation will be reported as Instigator's location at the moment of event happening

Overridden from UAISense

Name Description

Public function Virtual

void

 

RegisterWrappedEvent

(
    UAISenseEvent& PerceptionEvent
)

Protected function Virtual

float

 

Update()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss