Fandom

WoWWiki

API RegisterCVar

105,017pages on
this wiki
Add New Page
Talk0 Share
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.


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.