Figura
Figura copied to clipboard
playCustomSound volume parameter doesn't control range
In the vanilla game, the volume parameter for playing sounds controls the actual range of blocks the sound will play, however in the lua scripting sound.playCustomSound's volume parameter controls the actual volume. Because of this, the range is permanently locked to playing for anyone who has your character rendered. This becomes a problem for anybody who needs to limit the sound to a certain range for any reason. A fix I suppose would be either adding a range parameter to the code, or somehow restoring the vanilla function of the volume and players can control the actual audio volume in the audio file itself.
try dividing the volume by 16
try dividing the volume by 16
Doing any kind of math with the volume just changes the actual volume of the audio. Dividing it by 16 makes it silent for everyone.