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