Ohklus@legacy41562383 (talk | contribs) (First entry) |
Baudzilla@legacy41526902 (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
Registers a cvar (temporarily) |
Registers a cvar (temporarily) |
||
− | RegisterCVar( "cvar", value ); |
+ | RegisterCVar( "[[Console_variables|cvar]]", value ); |
== Parameters == |
== Parameters == |
Revision as of 07:45, 22 October 2008
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Registers a cvar (temporarily)
RegisterCVar( "cvar", value );
Parameters
Arguments
- cvar
- String - CVar to register
- value
- init value of the CVar (all CVars seem to be saved as String)
Details
You can register your own CVars by this function. The catch is that this CVar won't last longer than WoW is running. It doesn't seem to be saved to a file, but at least it endures relogging.
Use API_SetCVar to modify and API_GetCVar to query the registered CVar.