07 Apr 12, 09:20PM
Hrm, it looks like you've done a bit of editing to my bit of code xD.
I have the original working code at home and can help out a bit with whatever you may wanna implement as far as cubescript will allow.
The day/night script I wrote was a way to emulate day/night lighting by slowly changing gamma over-time.
It would start at normal gamma, and slowly increase the gamma by 2 every 10 seconds for 4 minutes - where it would reach a "peak daylight time", no more gamma changes are made for 1 minute during peak time, when it expires, the script switches into the night cycle and slowly decreases gamma by 2 every 10 seconds for 4 minutes, where it reaches the night peak, then the script switches back into the day cycle, etc. etc.
Get a hold of me on IRC ASAP D1551D3N7 :)
I have the original working code at home and can help out a bit with whatever you may wanna implement as far as cubescript will allow.
The day/night script I wrote was a way to emulate day/night lighting by slowly changing gamma over-time.
It would start at normal gamma, and slowly increase the gamma by 2 every 10 seconds for 4 minutes - where it would reach a "peak daylight time", no more gamma changes are made for 1 minute during peak time, when it expires, the script switches into the night cycle and slowly decreases gamma by 2 every 10 seconds for 4 minutes, where it reaches the night peak, then the script switches back into the day cycle, etc. etc.
Get a hold of me on IRC ASAP D1551D3N7 :)