Comment on page
globals
Functions for getting game globals such as the server time and map name.
globals.absoluteframetime()
: numberReturns the number of seconds elapsed during the last game frame.
globals.chokedcommands()
: numberReturns the number of choked commands, i.e. the number of commands that haven't yet been sent to the server.
globals.commandack()
: numberReturns the command number of the most recent server-acknowledged command.
globals.curtime()
: numberReturns the game time in seconds. This number is synchronized with the server.
globals.framecount()
: numberReturns the number of frames since the game started
globals.frametime()
: numberReturns the number of seconds elapsed during the last game frame.
globals.lastoutgoingcommand()
: numberReturns the command number of the last outgoing command.
globals.mapname()
: stringReturns the name of the loaded map, or nil if you are not in game.
globals.maxplayers()
: numberReturns the maximum number of players in the server.
globals.oldcommandack()
: numberReturns the command number of the previous server-acknowledged command.
globals.realtime()
: numberReturns the local time in seconds.
globals.tickcount()
: numberReturns the number of ticks elapsed in the server.
globals.tickinterval()
: numberReturns the time elapsed in one game tick in seconds.
Last modified 2yr ago