WoW:API SetCVar: Difference between revisions

m
m (", the game" -removed)
Line 17: Line 17:
Some options require a call to [[API_RestartGx|RestartGx]]() before they take effect.
Some options require a call to [[API_RestartGx|RestartGx]]() before they take effect.


If you try and pass an invalid CVar you'll get an error, check [[Config.wtf defaults]] for a list of valid CVars.
If you try and pass an invalid CVar you'll get an error, check [[Console variables]] for a list of valid CVars.


By default CVAR_UPDATE is not fired when you call SetCVar, to make sure it does you need to pass the third argument scriptCVar which will be the first argument in the event when it's fired.
By default CVAR_UPDATE is not fired when you call SetCVar, to make sure it does you need to pass the third argument scriptCVar which will be the first argument in the event when it's fired.
Anonymous user