globals
Read-only live game values: realtime, curtime, frametime, framecount, tickcount, tickfraction, tickinterval and maxplayers.
Read-only game values, read live on each access.
| Property | Type | Description |
|---|---|---|
globals.realtime | number | Real time in seconds. |
globals.curtime | number | Game time in seconds. |
globals.frametime | number | Last frame duration in seconds. |
globals.framecount | integer | Frame counter. |
globals.tickcount | integer | Current tick. |
globals.tickfraction | number | Fraction of the current tick. |
globals.tickinterval | number | Seconds per tick: 1/64. |
globals.maxplayers | integer | Number of player slots. |
All properties return nil before the game's global variables exist, including at the main menu immediately after startup. Unknown properties also return nil; absoluteframetime is not defined. pairs(globals) yields no entries.
Assigning any property raises globals.<key> is read-only.
