Author Topic: Ambient Sounds  (Read 1144 times)

I was wondering if there was some add-on that lets you play ambient sounds throughout the server. I know there's ambient sounds as music, but I was thinking of something that plays certain sounds at a random time server-wide. I've done all the searching I can, but I can't find anything that isn't just music.

You want an add-on, or do you want sounds? You've confused me there.

You could just google/youtube "X ambient" for the sounds.

You want an add-on, or do you want sounds? You've confused me there.

You could just google/youtube "X ambient" for the sounds.
I want an add-on that plays sounds server-wide randomly. Sorry for the confusion.

You can use this for what you want to do, if you want a constant stream of sounds.

Thank you for finding that for me, but that's not exactly what I've been looking for. I wanted something to play sounds instead of music, and not out of a brick, but server-wide, at a random time. If you've ever seen/played SCP Containment Breach and you've noticed one of those random ambient noises playing in the background at any given time, you should hopefully know what I'm talking about.

you could produce this effect with VCE. having a relay on a brick roll a dice here and there, assign sounds to a few numbers that it might occasionally land on, then have it play sound to a minigame with Event_playSound (which lets you play sound to player, client, and minigame)

you could produce this effect with VCE. having a relay on a brick roll a dice here and there, assign sounds to a few numbers that it might occasionally land on, then have it play sound to a minigame with Event_playSound (which lets you play sound to player, client, and minigame)
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?

picture is slightly blurred due to my reshade settings but it still looks fine. forgot to expand on line 0's description if you don't know relays: you can start the event with whatever as long as it does fireRelay


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.

Thanks to both of you! Very helpful. I'll be using this a lot.