M MY Multiplayer: Wiki
Side
Kind

getSoundMinDistance

Shared

Returns how far a 3D sound plays at full volume.

float|false getSoundMinDistance(sound sound)

Parameters

NameTypeDescription
soundsoundThe 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")

See also