Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UPawnNoiseEmitterComponent
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
| Type | Name | Description | |
|---|---|---|---|
| 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 | |
| FVector | LastRemoteNoisePosition | Most recent noise made by this pawn not at its own location. | |
| 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
| Type | Name | Description | |
|---|---|---|---|
UPawnNoiseEmitterComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetLastNoiseTime
(
bool bSourceWithinNoiseEmitter |
||
| float | GetLastNoiseVolume
(
bool bSourceWithinNoiseEmitter |
||
| void | Cache noises instigated by the owning pawn for AI sensing |