UAISense_Hearing::ReportNoiseEvent

Report a noise event.

Windows
MacOS
Linux

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

Syntax

static void ReportNoiseEvent
(
    UObject * WorldContextObject,
    FVector NoiseLocation,
    float Loudness,
    AActor * Instigator,
    float MaxRange,
    FName Tag
)

Remarks

Report a noise event.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss