[Scarpet] sound() is missing targets and minVolume arguments
CommandLeo opened this issue ยท 2 comments
Scarpet sound()
: sound(name, pos, volume?, pitch?, mixer?)
Vanilla /playsound
: playsound <sound> <source> <targets> [<pos>] [<volume>] [<pitch>] [<minVolume>]
You should be able to specify a target for sound()
. Currently the sound is reproduced to all players in the area.
The reason these were not added is that from the gameplay perspective these options are never used. minVolume is handled only in the playSound command by artificially placing the sound closer to the player, and optional targets are handled by sending selective packets in the playsound command. Nowhere in the game play that happens that selectively.
But it makes sense to add these two extra options at the end