Navigation
API > API/Runtime > API/Runtime/AIModule
| Name | FAIDamageEvent |
| Type | struct |
| Header File | /Engine/Source/Runtime/AIModule/Classes/Perception/AISense_Damage.h |
| Include Path | #include "Perception/AISense_Damage.h" |
Syntax
USTRUCT (BlueprintType )
struct FAIDamageEvent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Perception/AISense_Damage.h | |||
FAIDamageEvent
(
AActor* InDamagedActor, |
Perception/AISense_Damage.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FSenseClass | class UAISense_Damage | Perception/AISense_Damage.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Amount | float | Damage taken by DamagedActor. @Note 0-damage events do not get ignored | Perception/AISense_Damage.h |
|
| DamagedActor | TObjectPtr< AActor > | Damaged actor | Perception/AISense_Damage.h |
|
| HitLocation | FVector | Event's additional spatial information @TODO document | Perception/AISense_Damage.h |
|
| Instigator | TObjectPtr< AActor > | Actor that instigated damage. Can be None | Perception/AISense_Damage.h |
|
| Location | FVector | Event's "Location", or what will be later treated as the perceived location for this sense. | Perception/AISense_Damage.h |
|
| Tag | FName | Optional named identifier for the damage. | Perception/AISense_Damage.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Compile() |
Perception/AISense_Damage.h | ||
IAIPerceptionListenerInterface * GetDamagedActorAsPerceptionListener() |
Perception/AISense_Damage.h | ||
bool IsValid() |
Perception/AISense_Damage.h |