I'm a new player about CK, but I know what I want.
I've made a mod that add lanterns near bridges. These lanterns use a custom new light with ID: "lightLanternSkyrim"
Now I'm trying to make lit lanterns only from 6:00 to 18:00.
I don't know how to retrieve current clock time and I don't know how to modify light on/off.
There is my "ideal" script here
Function mainLanterns() RegisterForUpdateGameTime(1)endFunctionEvent OnUpdateGameTime() if currentTime>=6 && currentTime<=18 TurnOFFLightByID else TurnONLightByID endIfendEvent
Of course, currentTime, TurnOFFLightByID and TurnONLightByID are not the real script stuff.
What I've to do to get clock time and toggle lighting?
Thank you!