What does mFloor do againDoesn't it mess this up?
exactly.that's why we call mfloor so we don't get 0.333.
function getDayCycleTime(){ %t = getSimTime(); %l = DayCycle.dayLength; %t = %t / 1000; %r = mFloor(%t % %l); return %r;}
Your idea appears to return true every time getSimTime() equals a multiple of the time of day.this is bad :(what ho! this script will cause it to return WHAT SECOND OUT OF THE WHOLE DAYCYCLE LOOP IT ISfor example, if we're 15 seconds into a 60 second loop, it will return 15!Code: [Select]function getDayCycleTime(){ %t = getSimTime(); %l = DayCycle.dayLength; %t = %t / 1000; %r = mFloor(%t % %l); return %r;}
0 is noon.
IdkI can't see shaders idk what happensI want home
Btw, this probabl won't work if the daycycle isn't started with the server by a gamemode or script, aka, later, and offset has to be put after %t=%t/1000 with a - operator
No. The Daycycle's position through it's travels is directly locked to getSimTime().PS, I'll be using your code for building an array when people add certain events to a brick for my onDay and onNight events.