Wikia

WoWWiki

API RegisterCVar

Talk0
101,554pages on
this wiki
Revision as of 07:45, October 22, 2008 by Baudzilla (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < RegisterCVar

Registers a cvar (temporarily)

 RegisterCVar( "cvar", value );

Parameters Edit

Arguments Edit

cvar 
String - CVar to register
value 
init value of the CVar (all CVars seem to be saved as String)

Details Edit

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.


Around Wikia's network

Random Wiki