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
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: In-game clock not working

Try putting your Global Vars into a file called global.hps in your /maps directory, with this code.

PHP Code: (Select All)
void OnGameStart()
{
    
SetGlobalVarInt("Hours"gameHours);
    
SetGlobalVarInt("Minutes"gameMinutes);
    
SetGlobalVarFloat("TimeScale"timeScale);


Then remove the SetGlobalVars in your OnLeave();.

You should also start a new game when testing this, since OnGameStart() is only called when you click "New Game" from the menu.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 09-22-2016, 03:23 AM by Romulator.)
09-22-2016, 03:23 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)