The clock is an in-game Object which either tells time or acts as a timer. It has its own class, Clock, with functions/members associated with it. This allows you to manipulate the special properties of a clock.
- Clock Modes:
- Current Time: Displays the current time of the host.
- Stopwatch: Displays a running count up.
- Timer: Displays a countdown and beeps once complete.
Like Object member variables, Clocks have their own member variable.
|paused||If the clock timer is paused.|
|getValue()||Current time in stopwatch or timer mode. Clock mode returns 0. This function acts the same as Object's getValue().|
|pauseStart()||Pauses/resumes a Clock in stopwatch or timer mode.|
|setValue(Int seconds)||Switches clock to timer and sets countdown time. This function acts the same as Object's setValue().|
|showCurrentTime()||Switches clock to display current time. It will clear any stopwatch or timer.|
|startStopwatch()||Switches clock to stopwatch, setting time to 0. It will reset time if already in stopwatch mode.|
Set the timer to display a number of seconds. This function acts the same as Object's setValue(). If the Clock is not in timer mode, it will be switched. If it is in timer mode, it will be paused and the remaining time will be changed. This will not start the countdown on its own.