Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Perception
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/Perception/AIPerceptionComponent.h |
| Include | #include "Perception/AIPerceptionComponent.h" |
Syntax
struct FActorPerceptionInfo
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bIsFriendly | Indicates whether this Actor is friendly to perception holder | |
| uint32: 1 | bIsHostile | Indicates whether this Actor is hostile to perception holder | |
| FAISenseID | DominantSense | If != MAX indicates the sense that takes precedence over other senses when it comes to determining last stimulus location | |
| TArray< FAIStimulus > | LastSensedStimuli | ||
| TWeakObjectPtr< AActor > | Target |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FActorPerceptionInfo
(
AActor* InTarget |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | GetLastStimulusLocation
(
float* OptionalAge |
Retrieves last known location. Active (last reported as "successful") stimuli are preferred. | |
| FVector | GetReceiverLocation
(
const FAISenseID Sense |
Retrieves receiver location of the last sense stimuli for a given sense | |
| FVector | GetStimulusLocation
(
const FAISenseID Sense |
Retrieves location of the last sensed stimuli for a given sense | |
| bool | Indicates currently live (visible) stimulus from any sense | ||
| bool | It includes both currently live (visible) stimulus, as well as "remembered" ones | ||
| bool | HasKnownStimulusOfSense
(
const FAISenseID Sense |
Indicates a currently active or "remembered" stimuli for a given sense | |
| bool | IsSenseActive
(
const FAISenseID Sense |
Indicates a currently active stimuli for a given sense | |
| void | Merge
(
const FActorPerceptionInfo& Other |
Takes all "newer" info from Other and absorbs it |