Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] In-game clock not working
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: In-game clock not working

One thing you can try is to

PHP Code: (Select All)
int gameHours;
int gameMinutes;
float timeScale;

void OnEnter() {
    
gameHours GetGlobalVarInt("Hours");
    
gameMinutes GetGlobalVarInt("Minutes");
    
timeScale GetGlobalVarInt("TimeScale");


Perhaps that will fix, if not all but some of the problems.

Another thing is I don't think timers run across maps, so your "Stop" timer from OnLeave might not run in the second map, but rather wait until you return to the original map. Not 100% sure here though.

09-22-2016, 03:28 AM
Find


Messages In This Thread
RE: In-game clock not working - by Romulator - 09-22-2016, 03:23 AM
RE: In-game clock not working - by DanielRand47 - 09-22-2016, 03:45 AM
RE: In-game clock not working - by Mudbill - 09-22-2016, 03:28 AM



Users browsing this thread: 1 Guest(s)