UPawnNoiseEmitterComponent

PawnNoiseEmitterComponent tracks noise event data used by SensingComponents to hear a Pawn.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PawnNoiseEmitterComponent.h

Include

#include "Components/PawnNoiseEmitterComponent.h"

Syntax

class UPawnNoiseEmitterComponent : public UActorComponent

Remarks

PawnNoiseEmitterComponent tracks noise event data used by SensingComponents to hear a Pawn. This component is intended to exist on either a Pawn or its Controller. It does nothing on network clients.

Variables

Name Description

Protected variable

uint32: 1

 

bAIPerceptionSystemCompatibilityMode

If set to true (default value) will notify AIPerceptionSystem about noise events otherwise only PawnSensingComponents will be able to pick up noises generated by this component

Public variable

FVector

 

LastRemoteNoisePosition

Most recent noise made by this pawn not at its own location.

Public variable

float

 

NoiseLifetime

After this amount of time, new sound events will overwrite previous sounds even if they are not louder (allows old sounds to decay)

Constructors

Name Description

Public function

UPawnNoiseEmitterComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

float

 

GetLastNoiseTime

(
    bool bSourceWithinNoiseEmitter
)

Public function Const

float

 

GetLastNoiseVolume

(
    bool bSourceWithinNoiseEmitter
)

Public function Virtual

void

 

MakeNoise

(
    AActor* NoiseMaker,
    float Loudness,
    const FVector& NoiseLocation
)

Cache noises instigated by the owning pawn for AI sensing

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