sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Add a way to pick which sound a SoundEvent chooses

Open lannior opened this issue 3 years ago • 2 comments

For?

S&Box

What can't you do?

We currently can't influence which sound a SoundEvent plays if there are multiple to choose from

How would you like it to work?

An overload for PlaySound and all Sound.From methods which accept an index for which sound should be played would work. To accommodate that we should also get a method which tells us how many sounds a sound event has but I don't know how that would work since there is no sound preloading and there's no way to access the sound until you actually play it

What have you tried?

Splitting the sound event into multiple but that completely defeats the purpose of sound events being able to play multiple different sounds

Additional context

No response

lannior avatar Nov 18 '22 12:11 lannior

I don't really get this. If you want to make your own behaviors, you can play individual files already

DevulTj avatar Apr 04 '24 10:04 DevulTj

If I remember correctly, the reason I requested this is for networking the same sound to all clients.

lannior avatar Apr 16 '24 08:04 lannior