FActorPerceptionInfo::GetStimulusLocation

Retrieves location of the last sensed stimuli for a given sense

Choose your operating system:

Windows

macOS

Linux

References

Module

AIModule

Header

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

Include

#include "Perception/AIPerceptionComponent.h"

Syntax

FVector GetStimulusLocation
(
    FAISenseID Sense
) const

Remarks

Retrieves location of the last sensed stimuli for a given sense

Returns

Location of the last sensed stimuli or FAISystem::InvalidLocation if given sense has never registered related Target actor or if last stimuli has expired.

Parameters

Parameter

Description

Sense

The AISenseID of the sense