Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Perception > API/Runtime/AIModule/Perception/UAISense_Hearing
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/Perception/AISense_Hearing.h |
| Include | #include "Perception/AISense_Hearing.h" |
| Source | /Engine/Source/Runtime/AIModule/Private/Perception/AISense_Hearing.cpp |
static void ReportNoiseEvent
&40;
UObject &42; WorldContextObject,
FVector NoiseLocation,
float Loudness,
AActor &42; Instigator,
float MaxRange,
FName Tag
&41;
Remarks
Report a noise event.
Parameters
| Name | Description |
|---|---|
| NoiseLocation | Location of the noise. |
| Loudness | Loudness of the noise. If MaxRange is non-zero, modifies MaxRange, otherwise modifies the squared distance of the sensor's range. |
| Instigator | Actor that triggered the noise. |
| MaxRange | Max range at which the sound can be heard, multiplied by Loudness. Values <= 0 mean no limit (still limited by listener's range however). |
| Tag | Identifier for the event. |