Hello, i'm wanting to put a clock in a hud that corresponds with the system clock time. is there any way where the clock can actualy gather data from the user's system time and display it on the hud. *Not i'm making a game which has a setup which looks ike a Windows start bar with a clock. Right now i have it where it does
12:00 AM
then it blinks to
: AM
lol its a cheep way for a filler untill i can figure out if there is such of a way to display the actual system time on a hud.
ID:170504
![]() Jan 16 2005, 4:14 pm
|
|
![]() Jan 16 2005, 4:26 pm
|
|
Unfortunately, you can't tell what time it is on the user's computer. You can tell what the server time is using world.timeofday or world.realtime. time2text() can turn those two variables into a readable time.
|
I already found a code similar to that, but it said it was midnight, lol so if there isn't a code where it calls the system time then oh well. mabye in later updater there will be commands like where when a person clicks something or somewhat it will tell system time, lol
how about this for a future code mob/verb/TellTime() lol itskinda screwy but i hope hey implement a code similar or something close to it like in a future byond verson or something. |
ElderKain wrote:
I already found a code similar to that, but it said it was midnight, lol so if there isn't a code where it calls the system time then oh well. mabye in later updater there will be commands like where when a person clicks something or somewhat it will tell system time, lol > mob/verb/TellTime() lol itskinda screwy but i hope hey implement a code similar or something close to it like in a future byond verson or something. You could always set those up as variables, and then set it up to where theyt can set the clock, and maybe even the date. |
what you can do is provide a setting that players can adjust that corresponds to the offset in hours from the worldtime variable. this is what Chatters does so that timestamps in the chat screen reflect local time of the chatter.
|
Oh so have it set up where when a person like dblclicks the clock, it comes up with a set clock feature. but only one problem with that. they would have to se set it ever time they join the game. that would have lots of problems, and realy annoying. or have it set up with the hosts time, and the person just sets up for what time zon that they are in. that way it would interact with the hosts time. that could work
... am i continuing talking, lol i don't think all that info needs to be let out, lol.... ... am i still continuing... oh man, oh well better stop while i'm at it, lol. |