Index       Console Variables

trap_Cvar_Set

Description

Set the value of the specified cvar.

Prototype

    void trap_Cvar_Set(
        const char *var_name,
        const char *value
    );

Parameters

var_name : A null-terminated string containing the name of the vmCvar to set.
value : A null-terminated string containing the desired value.

Remarks

This function searchs for the name of the vmCvar and stores the value into both the float and integer fields of the corresponding vmCvar entry.
The only way to effectly change the value of a vmCvar is to use this function, the ANSI storage operator only modifies the local buffer and not the "master copy".

Return value

This function has no return value.

See also

trap_Cvar_Register
trap_Cvar_Update

Author(s)

-=Hunter-Killer=-


QuakeIII trap calls reference