GetCmdArgs Function

Returns the number of arguments from the current console or server command.

int GetCmdArgs()

Return Value

Number of arguments to the current command.

Notes

Unlike the HL2 engine call, this does not include the command itself.