ConVar: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{otherlang2
{{otherlang2
|es=ConVar:es
|es=ConVar:es
|ru=ConVar:ru
|ru=Convar:ru
}}
}}
{{stub}}
{{stub}}

Revision as of 07:44, 31 July 2015

Template:Otherlang2

Stub

This article or section is a stub. You can help by expanding it.

For a description of what a Console Variable is, see Commands and variables.

Documentation on specific console variables can be found at Category:Console Variables. For creating a new Console Variable see this. Developer Console Control


ConVar( const char *pName, const char *pDefaultValue, int flags, const char *pHelpString, bool bMin, float fMin, bool bMax, float fMax );

The default value given as the second argument of the ConVar constructor is not the value set. To set a value, use:

pName->SetValue([value]);

Good practices

Variables that you wish to be saved should be marked with flag FCVAR_ARCHIVE. Any cheat ConVar defined should not be archived.

See also

Developer Console Control