Playing background music based on time of day

Instead of this branch

Thanks for the reply, but it didn’t seem work then and my flip flop didn’t have the red pin for the ultra dynamic sky and time of day to plug in. Am I doing something wrong?


Also i am getting this error if it helps.

I mean, forget about UDS for now, just get the thing to switch! :slight_smile:

The error is because you have two variables. ‘play sound’ and ‘playing sound’.

Take a closer look at the code :wink:

I see that now. I still don’t know what is causing it not to switch.

Show me your code now?..

Hello there, was wondering if all the blue variables were supposed to be sound base. And can you remind me how to get the sound with target node? I am having to rebuild this code again and am stuck on these.

I outlined the variable types that work, here

Sorry i’ve been away from my project for a bit. Here is my code.



It seems to only play the day day time sounds

image

:slight_smile:

Thanks but when I set the ultra dynamic sky to midnight it still plays the day sound. I’m sorry to be such a bother and do appreciate your time deeply.

I think you might have the wrong range in your test. Try putting this in the level BP

image

and see what values are actually being used by the sky when you change between night and day.