system.UpTime

From Garry's Mod
Jump to: navigation, search
 system.UpTime( )

Description

Returns the amount of seconds since the Steam user last moved their mouse.

This is a direct binding to ISteamUtils->GetSecondsSinceComputerActive, and is most likely related to Steam's automatic "Away" online status.

NOTE

This function does not work on Dedicated Servers and will instead return no value.

Returns

number

The amount of seconds since the Steam user last moved their mouse.
Personal tools
Navigation