CUserCmd/TickCount

From Garry's Mod
Revision as of 03:28, 21 November 2016 by Code gs (Talk | contribs)
Jump to: navigation, search
 CUserCmd:TickCount( )

Description

Returns tick count since joining the server. This will always return 0 for bots.

Returns 0 clientside during prediction calls. If you are trying to use CUserCmd:SetFoo() on the client in a movement or command hook, keep doing so till TickCount returns a non-zero number to maintain prediction.

Returns

number

The amount of ticks passed since joining the server.
Personal tools
Navigation