GetCmdArgFloatEx

Last Updated2022-04-12
Created At2022-04-12

Retrieves a float command argument given its index, from the current console or server command. Returns false if the argument can not be completely parsed as a floating point.

stock bool GetCmdArgFloatEx(int argnum, float& value)

Parameters

int argnum
Argument number to retrieve.
float& value
Populated with the value of the command argument.

Return Value

bool Whether the argument was entirely a floating point value.