UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAINoiseEvent Struct Reference

#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< AActorInstigator
 
FName Tag
 
FGenericTeamId TeamIdentifier
 

Member Typedef Documentation

◆ FSenseClass

Constructor & Destructor Documentation

◆ FAINoiseEvent() [1/2]

FAINoiseEvent::FAINoiseEvent ( )

◆ FAINoiseEvent() [2/2]

FAINoiseEvent::FAINoiseEvent ( AActor InInstigator,
const FVector InNoiseLocation,
float  InLoudness = 1.f,
float  InMaxRange = 0.f,
FName  Tag = NAME_None 
)

Member Function Documentation

◆ Compile()

void FAINoiseEvent::Compile ( )

Verifies and calculates derived data

Member Data Documentation

◆ Age

float FAINoiseEvent::Age

◆ Instigator

TObjectPtr<AActor> FAINoiseEvent::Instigator

Actor triggering the sound.

◆ Loudness

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.

◆ MaxRange

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.

◆ NoiseLocation

FVector FAINoiseEvent::NoiseLocation

if not set Instigator's location will be used

◆ Tag

FName FAINoiseEvent::Tag

Named identifier for the noise.

◆ TeamIdentifier

FGenericTeamId FAINoiseEvent::TeamIdentifier

The documentation for this struct was generated from the following files: