FAIStimulus

Windows
MacOS
Linux

References

Module

AIModule

Header

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

Include

#include "Perception/AIPerceptionTypes.h"

Syntax

struct FAIStimulus

Variables

Name Description

Protected variable

float

 

Age

Protected variable

uint32: 1

 

bExpired

This means the stimulus was originally created with a "time limit" and this time has passed.

Protected variable

uint32: 1

 

bSuccessfullySensed

Protected variable

uint32: 1

 

bWantsToNotifyOnlyOnValueChange

Protected variable

float

 

ExpirationAge

Public variable

FVector

 

ReceiverLocation

Public variable

FVector

 

StimulusLocation

Public variable

float

 

Strength

Public variable

FName

 

Tag

Public variable

FAISenseID

 

Type

Constructors

Name Description

Public function

FAIStimulus()

Default constructor

Public function

FAIStimulus

(
    const UAISense& Sense,
    float StimulusStrength,
    const FVector& InStimulusLocation,
    const FVector& InReceiverLocation,
    FResult Result,
    FName InStimulusTag
)

This is the recommended constructor. Use others if you know what you're doing.

Functions

Name Description

Public function

bool

 

AgeStimulus

(
    float ConstPerceptionAgingRate
)

Public function Const

float

 

GetAge()

Public function Const

FString

 

GetDebugDescription()

Public function Const

bool

 

IsActive()

Public function Const

bool

 

IsExpired()

Public function Const

bool

 

IsValid()

Public function

void

 

MarkExpired()

Public function

void

 

MarkNoLongerSensed()

Public function

FAIStimulus ...

 

SetExpirationAge

(
    float InExpirationAge
)

Public function

FAIStimulus ...

 

SetStimulusAge

(
    float StimulusAge
)

Public function

FAIStimulus ...

 

SetWantsNotifyOnlyOnValueChange

(
    bool InEnable
)

Public function Const

bool

 

WantsToNotifyOnlyOnPerceptionChange()

Public function Const

bool

 

WasSuccessfullySensed()

Enums

Name

Description

Public enum

FResult

Constants

Name

Description

NeverHappenedAge

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