getSoundMinDistance
Shared
Returns how far a 3D sound plays at full volume.
float|false getSoundMinDistance(sound sound)
Parameters
| Name | Type | Description |
|---|---|---|
| sound | sound | The sound element. On the client a dui element also works, for the browser's sound. |
Returns
The distance in metres, or false if the sound was not found.
Example
outputDebugString("Full volume up to " .. getSoundMinDistance(radio) .. " m")