FActorPerceptionInfo

Windows
MacOS
Linux

References

Module

AIModule

Header

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

Include

#include "Perception/AIPerceptionComponent.h"

Syntax

struct FActorPerceptionInfo

Variables

Name Description

Public variable

uint32: 1

 

bIsHostile

Indicates whether this Actor is hostile to perception holder

Public variable

FAISenseID

 

DominantSense

If != MAX indicates the sense that takes precedense over other senses when it comes to determining last stimulus location

Public variable

TArray< FAIStim...

 

LastSensedStimuli

Public variable

TWeakObjectPtr<...

 

Target

Constructors

Name Description

Public function

FActorPerceptionInfo

(
    AActor* InTarget
)

Functions

Name Description

Public function Const

FVector

 

GetLastStimulusLocation

(
    float* OptionalAge
)

Retrieves last known location. Active (last reported as "successful") stimuli are preferred.

Public function Const

FVector

 

GetReceiverLocation

(
    FAISenseID Sense
)

Retrieves receiver location of the last sense stimuli for a given sense

Public function Const

FVector

 

GetStimulusLocation

(
    FAISenseID Sense
)

Retrieves location of the last sensed stimuli for a given sense

Public function Const

bool

 

HasAnyCurrentStimulus()

Indicates currently live (visible) stimulus from any sense

Public function Const

bool

 

HasAnyKnownStimulus()

It includes both currently live (visible) stimulus, as well as "remembered" ones

Public function Const

bool

 

HasKnownStimulusOfSense

(
    FAISenseID Sense
)

Indicates a currently active or "remembered" stimuli for a given sense

Public function Const

bool

 

IsSenseActive

(
    FAISenseID Sense
)

Indicates a currently active stimuli for a given sense

Public function

void

 

Merge

(
    const FActorPerceptionInfo& Other
)

Takes all "newer" info from Other and absorbs it

Deprecated Functions

Name Description

Public function Const

bool

 

IsSenseRegistered

(
    FAISenseID Sense
)

This method is identical to IsSenseActive and will be removed in future versions. Please use IsSenseActive to check for a currently active stimuli or HasKnownStimulusOfSense for an active or remembered stimuli.

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