GetCmdArgFloat Function

Retrieves a float command argument given its index, from the current console or server command. Will return 0.0 if the argument can not be parsed as a number. Use GetCmdArgFloatEx to handle that explicitly.

float GetCmdArgFloat(int argnum)

Parameters

int argnum

Argument number to retrieve.

Return Value

Value of the command argument.