How to stop music at a certain level?


My Game instance

Level Blueprint of my MainMenu map

So I set it up so music plays on starting from the mainmenu and throughout levels. But I want it to stop the music on a specific level. How do I do that?

1 Like

At some point, you can just

image

2 Likes

also note your sound is set to auto destroy.
that means once stopped will be destroyed…if you want to play it again and keep it in memory turn this off

image

Hi
Use bool logic.when level on bool true then stop music

I’ve thought about that, but I get a warning that bgm property is accessed to none. why is that?

Because it’s not the same bgm. It has to be the bgm from the game instance. It’s no good having a variable of the correct type, it has to actually be the assigned variable. You made the assignment here

image

1 Like

Thank you! somehow it didn’t work in Event begin Play so I added the nodes to custom event and everything works. Thanks!

2 Likes