How can I set up a Time of Day system using code?

I haven’t tried this yet in my game, but I am getting close to needing to do it. Here is the information I found. The class you are looking for is ALevelScriptActor. This is what the level blueprint inherits from. You can find more information and a tutorial on how to do this here: