Disable Sounds using Blueprint?

So I have a few sound cues setup around my map, however, I don’t want them to start playing when the level begins, I need to enable these sounds at a certain point of the game.
Basically, I have a switch between day and night, I want these specific sounds to play at night, and not interrupt the sounds that play during the daytime that I already setup to start when the level loads.

Since the game is gonna have only one day, and only one night, I made the daytime sounds destroy themselves in level blueprint when the night comes since they are of no use then.

How do I disable a sound cue in the level blueprint at the beginning and enable it later when I want?

The best way to do this is to set a sound class for all your day and night sound cues.
First create a GlobalSoundMix which will hold all of your sound classes.

134390-screenshot_1619.png

Then create a separate SoundClass for DaySounds and NightSounds. Add those classes to the GlobalSoundMix. Open your sound cues and set their class to DaySounds or NightSounds accordingly, like so:

Then you can control their class parameters in a batch. When the day ends you just fade out the DaySounds class and fade in the NightSounds class with the SetSoundMixClassOverride node, like so:

134393-screenshot_1621.png

There may be alternative ways to achieve this, but let me know if it works for you.

Thank you very much for your answer, I tried doing what you said, but I don’t understand this, you said: “Then create a separate SoundClass for DaySounds and NightSounds”. Does this mean to make 2 classes, one being DaySoundsClass and other NightSoundClass? Or does this mean one class holding all of the sounds?
Because then you said to assign the cues to according classes.
So which one is it? Becouse when I get the “Set Sound Mix Class Override” I doesnt ask for two classes, but for a mix and then a class.

Yes, create separate classes for your day and night sounds and then assign them to your cues accordingly. In example, if you have WindDay_Cue, you should assign it a DaySounds class and if you have WindNight_Cue, you should assign it a NightSounds class.

Thank you :slight_smile: