UGameplayStatics::AreAnyListenersWithinRange

Determines if any audio listeners are within range of the specified location

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h

Include

#include "Kismet/GameplayStatics.h"

Source

/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp

Syntax

static bool AreAnyListenersWithinRange
(
    const UObject * WorldContextObject,
    const FVector & Location,
    float MaximumRange
)

Remarks

Determines if any audio listeners are within range of the specified location

This will always return false if there is no audio device, or the audio device is disabled.

Parameters

Parameter

Description

Location

The location to potentially play a sound at

MaximumRange

The maximum distance away from Location that a listener can be

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