Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

API C_CVar.RegisterCVar

From Wowpedia
Jump to: navigation, search

Registers a custom cvar (temporarily).

C_CVar.RegisterCVar("name" [, value])

Arguments

name 
string - name of the custom CVar to set.
value 
string (optional) - init value of the CVar, any number will be saved as a string.

Details

  • You can register your own CVars. They are set game-wide and will persist after relogging/reloading but not after closing the game.

Patch changes

See also