Posts: 1,571
Threads: 49
Joined: Dec 2009
Reputation:
0
I noticed SetPlayerTime has three params, being two of them hour and minutes while SetWorldTime has just hour as a time parameter. My question is if the minutes of SetPlayerTime does change the server time or if it just changes the player clock?
Thanks!
Posts: 162
Threads: 27
Joined: Oct 2009
Reputation:
0
SetPlayerTime only changes the player's time.
SetWorldTime changes both server and player's time.
Posts: 1,571
Threads: 49
Joined: Dec 2009
Reputation:
0
What I wanted to know was if the minutes changes the time or if just changes the player(s) clock?
Example:
It's 23:58 and it's dark but is it going to be darker at 23:59?
Posts: 162
Threads: 27
Joined: Oct 2009
Reputation:
0
To answer your example, yes. It's just like real life.
So what you're asking is if the SetPlayerTime function directly affect the actual time of day? If so, then yes, it does. If you want to see it in action then try my Basic Clock (In my sig)...
Posts: 410
Threads: 24
Joined: Aug 2008
Reputation:
0
include the filterscript provided to the config called gl_realtime
much easier than scripting it