SetCVar

From ZDoom Wiki
Jump to: navigation, search

bool SetCVar (str cvar, int value);

Usage

Sets the value of a particular console variable. Only mod-created console variables defined through CVARINFO can be changed with this function, any built-in engine CVars cannot be.

Parameters

  • cvar: name of a console variable.
  • value: value to apply to said console variable.

Return value

Returns FALSE if cvar is invalid, or it is not writable. Returns TRUE if the cvar is set successfully.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.


See also

Console variable functions
GetCVar SetCVar
GetCVarString SetCVarString
GetUserCVar SetUserCVar
GetUserCVarString SetUserCVarString
CVARINFO