Figura icon indicating copy to clipboard operation
Figura copied to clipboard

playCustomSound volume parameter doesn't control range

Open Billevity opened this issue 2 years ago • 2 comments

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.

Billevity avatar Mar 21 '22 21:03 Billevity

try dividing the volume by 16

Francy-chan avatar Mar 21 '22 21:03 Francy-chan

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.

Billevity avatar Mar 21 '22 23:03 Billevity