Quote:
Originally posted by grim_squeaker_x
Any string set with the setstring command which begins with "server." When it is changed it changes for all the players on the server. So it is possible to use it for night/day or weather or CTF Games or whatever.
|
Actually there's a better way to do night/day now: timevar
timevar is a built-in variable incremented every 5 seconds by the server by 1 tick. On the Graal 2001 server, this gets calculated to 2 Graalian minutes... by my calculations this becomes:
30 ticks = 1 hour
720 ticks = 1 day
17280 ticks = 1 month
414720 ticks = 1 year
Oh btw, be careful about division. When it gets to 1 month, you would be doing something like:
int(17279/17280) which gets calculated to 1, since of floating point errors. And 17279 % 17280 becomes. -1. Yep, a remainder less than 0.