- Documentation
- Client functions
- setSoundMinDistance
Function
setSoundMinDistance
Sets the distance up to which a 3D sound plays at full volume (5 m by default). The maximum distance grows if needed.
Syntax
bool setSoundMinDistance(sound theSound, float distance)Arguments
theSoundsound- The sound.
distancefloat- Metres, from 0.
Returns
true on success.
Example
setSoundMinDistance(radio, 10)