Ru/ConVar: Difference between revisions
< Ru
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{otherlang2 | {{otherlang2 | ||
|title=Консольные переменные ConVar | |||
|es=ConVar:es | |es=ConVar:es | ||
|en=ConVar | |en=ConVar |
Revision as of 07:54, 31 July 2015
Описание переменных консоли Console Variable is смотрите здесь: Commands and variables.
Спецификацию на переменные консоли можно найти здесь Category:Console Variables. Чтобы создать новую консольную переменную, смотрите это: 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.