FAIDamageEvent

Choose your operating system:

Windows

macOS

Linux

References

Module

AIModule

Header

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

Include

#include "Perception/AISense_Damage.h"

Syntax

struct FAIDamageEvent

Variables

Name Description

Public variable

float

 

Amount

Damage taken by DamagedActor. 0-damage events do not get ignored

Public variable

TObjectPtr< AAc...

 

DamagedActor

Damaged actor

Public variable

FVector

 

HitLocation

Event's additional spatial information document

Public variable

TObjectPtr< AAc...

 

Instigator

Actor that instigated damage. Can be None

Public variable

FVector

 

Location

Event's "Location", or what will be later treated as the perceived location for this sense.

Public variable

FName

 

Tag

Optional named identifier for the damage.

Constructors

Name Description

Public function

FAIDamageEvent()

Public function

FAIDamageEvent

(
    AActor* InDamagedActor,
    AActor* InInstigator,
    float DamageAmount,
    const FVector& EventLocation,
    const FVector& InHitLocation,
    FName InTag
)

Functions

Typedefs

Name

Description

FSenseClass