- Documentation
- Client functions
- getSoundMaxDistance
Function
getSoundMaxDistance
Returns the distance from which a 3D sound can no longer be heard.
Syntax
float getSoundMaxDistance(sound theSound)Arguments
theSoundsound- The sound.
Returns
Metres or false.
Example
outputChatBox("Słychać do " .. getSoundMaxDistance(siren) .. " m")