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

Add a way to pick which sound a SoundEvent chooses

Open Weldify opened this issue 2 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

Weldify avatar Nov 18 '22 12:11 Weldify