ConVar: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added link to explanation on how to use ConVar's (First wiki edit, so took a while))
No edit summary
Line 5: Line 5:


<!-- only info on console variables _in general_ should be on this page -->
<!-- only info on console variables _in general_ should be on this page -->
ConVar( const char *pName, const char *pDefaultValue, int flags, const char *pHelpString, bool bMin, float fMin, bool bMax, float fMax );


== Good practices ==
== Good practices ==

Revision as of 01:29, 27 August 2010

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 );

Good practices

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

Template:Otherlang:en Template:Otherlang:en:es