Cvars

From QuakeQEWiki
Revision as of 17:56, 16 February 2022 by JPiolho (talk | contribs) (Created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Cvars are variables that can be read or set via the in-game console. Cvar stands for Console Variable. Each cvar has a name, description, type and some flags associated with it

Quake-C

It is possible to interact with these variables from Quake-C, however in vanilla QC there is some limitations. For example, being only able to read numeric values.

Use the following builtins to read and set cvars:

Cvar

Cvar_set

You can also set cvars using Localcmd, which will allow you to concatenate strings together.

See also

List of cvars