GetTime

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GetTime

Type: Function
Context: Client
Introduced: v1.0

Description

Get the client game time.

Syntax

GetTime()

Parameters

  • This function has no parameters.

Return Value

  • Returns the current game time as a floating point number.

Example

function OnPlayerSpawn()
	AddPlayerChat("You loaded into the server in "..GetTime().." seconds.")
end
AddEvent("OnPlayerSpawn", OnPlayerSpawn)

See also