Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.60

Description

Description:Converts a volume level into the maximum distance it can be heard at.
The returned value is only a heuristic approximation, and is most accurate when the receiver is approximately 2m above the ground, not moving, and only ambient life sounds are present.

Syntax

Syntax:volumeToDistance volume
Parameters:
  • volume: Number - Volume level (0-1).
Return Value:Number - Maximum audible distance (in meters)

Examples

Examples:
_dist = volumeToDistance .01

Additional Information

See also:setSoundSourceVolume
Multiplayer: 
Problems: 

Notes