Index Console Variables
trap_Cvar_Register
Description
This function is used to create a new vmCvar.
Prototype
void trap_Cvar_Register(
vmCvar_t *cvar,
const char *var_name,
const char *value,
int flags
);
Parameters
cvar : A pointer the location in which to store the local data.
var_name : A null-terminated string that will be used to set the vmCvar's name field.
value : A null-terminated string that will be used to set both the floating point and integer value fields of the vmCvar.
flags : .
Remarks
It sends all the information to the engine's main database and then it stores a local copy of the data into the vmCvar_t passed as the first argument.
Return value
This function has no return value.
See also
Author(s)