CUserCmd/CommandNumber

From Garry's Mod
Jump to: navigation, search
 CUserCmd:CommandNumber( )

Description

Returns an increasing number representing the index of the user cmd. The value returned is occasionally 0 inside GM:CreateMove, so it's advised to check for a non-zero value if you wish to get the correct number.

Returns

number

The command number
Personal tools
Navigation