Quote:
Originally Posted by Jman9912
Ah Thank you. Yeah the GS1 is still coming out. How exactly would the timevar work?
|
Basically, with the usage of the mod operator (percent sign), you'll get a value between 0 and 24, which you can base your day night system around but timevar increments once every five seconds.
Due to the forums protection replace [percent] in the script with an actual percent sign.
PHP Code:
//#CLIENTSIDE
function onCreated() {
setTimer(0.05);
}
function onTimeout() {
// To get your 24 hour time
temp.current_time = timevar [percent] 24;
// Do stuff with it
// Continue Timing Out
setTimer(5);
}