Convar

SetString

Parameters: "cmd", string

Convar.SetString ("r_aspectratio", "1");

Return values: returns true on success or false on failure.

[EN] Sets the string value of the given console command. [RU] Устанавливает строковое значение данной консольной команды.

GetString

Parameters: "cmd"

Convar.GetString("name")

Return values: returns the value of the parameter or false.

[EN] Finds the string value of the given console command. [RU] Находит строковое значение заданной консольной команды.

SetFloat

Parameters: "cmd", value

Convar.SetFloat("cl_ragdoll_gravity", 100.00);

Return values: returns true on success or false on failure.

[EN] Sets the float value of the given console command. [RU] Устанавливает значение float для данной консольной команды.

GetFloat

Parameters: "cmd"

Convar.GetFloat("cl_ragdoll_gravity");

Return values: returns the value of the parameter or false.

[EN] Finds the float value of the given console command. [RU] Находит float-значение данной консольной команды.

SetInt

Parameters: "cmd", value

Convar.SetInt("cl_ragdoll_gravity", 100);

Return values: returns true on success or false on failure.

[EN] Sets the integer value of the given console command. [RU] Устанавливает целочисленное значение данной консольной команды.

GetInt

Parameters: "cmd"

Convar.GetInt("cl_ragdoll_gravity")

Return values: returns the value of the parameter or false.

[EN] Finds the integer value of the given console command. [RU] Находит целочисленное значение заданной консольной команды.

Last updated