UPawnNoiseEmitterComponent

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

Windows
MacOS
Linux

Inheritance Hierarchy

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

References

Module

Engine

Header

Runtime/Engine/Classes/Components/PawnNoiseEmitterComponent.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback