Download

Timers for mods

I produced a solar panel mod and would really like to have it switch on during daylight hours and switch off during night time hours, could someone point me in the right direction, either a tutorial on it or some hints as to what to do, I am currently trying to teach myself the blueprint visual scripting but find it all very confusing.

Assuming you are using one of the standard Epic templates having a BP_Sky_Sphere, you can look at the Pitch angle of the Directional Light representing the sun to understand which time of the day it is, then change a parameter in the material of your solar panels to adapt them to it.

This tutorial, even if a bit old, may help you understand how this works: https://www.youtube.com/watch?v=xt_TIYthRUE

Hope this helps!

Cheers,
Marco.