UAISense_Hearing

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AIModule

Header

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

Include

#include "Perception/AISense_Hearing.h"

Syntax

class UAISense_Hearing : public UAISense

Variables

Name Description

Protected variable

TMap< FPercepti...

 

DigestedProperties

Protected variable

TArray< FAINois...

 

NoiseEvents

Protected variable

float

 

SpeedOfSoundSq

Defaults to 0 to have instant notification.

Constructors

Name Description

Public function

UAISense_Hearing

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function

void

 

OnListenerRemovedImpl

(
    const FPerceptionListener& Updated...
)

Protected function

void

 

OnListenerUpdateImpl

(
    const FPerceptionListener& Updated...
)

Protected function

void

 

OnNewListenerImpl

(
    const FPerceptionListener& NewList...
)

Public function

void

 

RegisterEvent

(
    const FAINoiseEvent& Event
)

Public function

void

 

RegisterEventsBatch

(
    const TArray< FAINoiseEvent >& Eve...
)

Protected function Virtual

void

 

RegisterMakeNoiseDelegate()

Public function Static

void

 

ReportNoiseEvent

(
    UObject* WorldContextObject,
    FVector NoiseLocation,
    float Loudness,
    AActor* Instigator,
    float MaxRange,
    FName Tag
)

Report a noise event.

Overridden from UAISense

Name Description

Public function Virtual

void

 

RegisterWrappedEvent

(
    UAISenseEvent& PerceptionEvent
)

Part of BP interface. Translates PerceptionEvent to FAINoiseEvent and call RegisterEvent(const FAINoiseEvent& Event)

Protected function Virtual

float

 

Update()

Overridden from UObject

Name Description

Public function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

Classes

Name

Description

Protected struct

FDigestedHearingProperties

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