Navigation
API > API/Runtime > API/Runtime/Engine
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.
| Name | UPawnNoiseEmitterComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PawnNoiseEmitterComponent.h |
| Include Path | #include "Components/PawnNoiseEmitterComponent.h" |
Syntax
UCLASS (ClassGroup=AI, Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UPawnNoiseEmitterComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UPawnNoiseEmitterComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPawnNoiseEmitterComponent
(
const FObjectInitializer& ObjectInitializer |
Components/PawnNoiseEmitterComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastRemoteNoisePosition | FVector | Most recent noise made by this pawn not at its own location. | Components/PawnNoiseEmitterComponent.h | |
| NoiseLifetime | float | After this amount of time, new sound events will overwrite previous sounds even if they are not louder (allows old sounds to decay) | Components/PawnNoiseEmitterComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastLocalNoiseTime | float | Time of last local noise update. | Components/PawnNoiseEmitterComponent.h | |
| LastLocalNoiseVolume | float | Most recent noise made by this pawn at its own location. | Components/PawnNoiseEmitterComponent.h | |
| LastRemoteNoiseTime | float | Time of last remote noise update. | Components/PawnNoiseEmitterComponent.h | |
| LastRemoteNoiseVolume | float | Most recent volume of noise made by this pawn not at its own location. | Components/PawnNoiseEmitterComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetLastNoiseTime
(
bool bSourceWithinNoiseEmitter |
Components/PawnNoiseEmitterComponent.h | ||
float GetLastNoiseVolume
(
bool bSourceWithinNoiseEmitter |
Components/PawnNoiseEmitterComponent.h | ||
virtual void MakeNoise
(
AActor* NoiseMaker, |
Cache noises instigated by the owning pawn for AI sensing | Components/PawnNoiseEmitterComponent.h |
|