Need help with Countdown Timers

South-Titan

New Member
Reaction score
16
Alright, here's the problem. I'm trying to get a 240-second timer to work in my game and instead of counting down from 240 seconds, it displays Time Left as a bunch of zeroes. Here's my little code, see if it'll help y'all help me with this.

Code:
Timer
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        Countdown Timer - Create a timer window for Timer with title Time Left
        Set Timer = (Last started timer)
        Countdown Timer - Show TimerWindow
        Countdown Timer - Start Timer as a One-shot timer that will expire in 240.00 seconds

Reward: Getting their names on the credits, and some reputation. Plus anything else I see fit.
 

SkateuUp

Member
Reaction score
4
why are you setting a timer variable after you created a timer window?
Edit: I mean your starting* a timer that doesn't exist.
 

SkateuUp

Member
Reaction score
4
Well he has the variable set to last created timer. There is no last created timer at 0.00 seconds so its set to 0. Then hes starting it as its 0. So either do as Quakern said. Or move the set variable below the start timer.
 

South-Titan

New Member
Reaction score
16
Fixed it, thanks to a helpful suggestion from ArmyOfFrogs and my older brother, the timer now works.

Note: What happened was all the triggers were right, just in the wrong order.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top