![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AISense_Hearing.h>
Public Types | |
| typedef class UAISense_Hearing | FSenseClass |
Public Member Functions | |
| AIMODULE_API | FAINoiseEvent () |
| AIMODULE_API | FAINoiseEvent (AActor *InInstigator, const FVector &InNoiseLocation, float InLoudness=1.f, float InMaxRange=0.f, FName Tag=NAME_None) |
| AIMODULE_API void | Compile () |
Public Attributes | |
| float | Age |
| FVector | NoiseLocation |
| float | Loudness |
| float | MaxRange |
| TObjectPtr< AActor > | Instigator |
| FName | Tag |
| FGenericTeamId | TeamIdentifier |
| FAINoiseEvent::FAINoiseEvent | ( | ) |
| FAINoiseEvent::FAINoiseEvent | ( | AActor * | InInstigator, |
| const FVector & | InNoiseLocation, | ||
| float | InLoudness = 1.f, |
||
| float | InMaxRange = 0.f, |
||
| FName | Tag = NAME_None |
||
| ) |
| void FAINoiseEvent::Compile | ( | ) |
Verifies and calculates derived data
| float FAINoiseEvent::Age |
| TObjectPtr<AActor> FAINoiseEvent::Instigator |
Actor triggering the sound.
| float FAINoiseEvent::Loudness |
Loudness modifier of the sound. If MaxRange is non-zero, this modifies the range (by multiplication). If there is no MaxRange, then if Square(DistanceToSound) <= Square(HearingRange * Loudness), the sound is heard, false otherwise.
| float FAINoiseEvent::MaxRange |
Max range at which the sound can be heard. Multiplied by Loudness. A value of 0 indicates that there is no range limit, though listeners are still limited by their own hearing range.
| FVector FAINoiseEvent::NoiseLocation |
if not set Instigator's location will be used
| FName FAINoiseEvent::Tag |
Named identifier for the noise.
| FGenericTeamId FAINoiseEvent::TeamIdentifier |