FAIDamageEvent

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

AActor *

 

DamagedActor

Damaged actor

Public variable

FVector

 

HitLocation

Event's additional spatial information document

Public variable

AActor *

 

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

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