Author Topic: Set daycycle time?  (Read 796 times)

It seems like for the daycycles i cannot set the time to a specific point?
Daycycle.setDayOffset(x) seems to only set the offset relative to the last offset or something. How can I set the time/cycle position so it puts the cycle in a fixed place (IE: the sun on the horizon before it rises) every time i use the command.

DayOffset is just that, the offset. It wont set the time. You can basically do this by taking the current time and a little math. Use this.

DayOffset is just that, the offset. It wont set the time. You can basically do this by taking the current time and a little math. Use this.

Look at syncDayCycle() from that link for an example.