Event_playSound (which expands the default playSound event to players, bots and minigames)
FTFY
Thank you. Although, I haven't ever used VCE before, and I'm not really sure how to do this. If you can, could you show an example?
Even though I've been ninja'd, I'm posting this anyway.
Here's an example of how you would play a sound randomly with VCE...
(Text-only because I'm on mobile)
OnMinigameReset > Self > FireRelay
OnRelay > Self > FireRelay (Delay 10000 (in miliseconds = 10 seconds), which makes this repeat every 10 seconds, but you can set it to anything up to 30000 (= 30 seconds)
OnRelay > Self > modVariable > dice > Set > 1 (Creates a new variable called "dice" for this brick and sets it to 1 (If it already exists, just resets to 1)
OnRelay > Self > modVariable > dice > Random > 6 (Now that we've set, or reset, "dice" to 1, we do this to make it a random number between and including 1 and 6)
OnRelay > Self > ifVariable > dice > = > 1 (We check if "dice", after we changed it, is equal to 1)
OnVariableTrue > Self > playSound > arrow_hit.wav (If "dice" is indeed 1, play the sound!)
You can change this to suit your needs. For playing the sound to all players in a minigame, use Event_playSound linked above and do
OnVariableTrue > Minigame > playSound > arrow_hit.wav
You can also use OnVariableFalse for when the if statement is incorrect, and for easier repeating,
Tick Events.