API C CVar.SetCVar

Sets a console variable. success = C_CVar.SetCVar("name" [, value, "scriptCVar"])

Arguments

 * name : string - name of the CVar.
 * value : string (optional) - the new value of the CVar. If omitted, defaults to "0".
 * scriptCVar : string (optional) - if passed, fires the event with this as the first parameter.

Returns

 * success : boolean - whether the CVar was successfully set.

Details

 * Settings that are changed using this will be applied to the game UI immediately, however settings are not saved to Config.wtf until properly logging out or reloading the game.
 * Some options require a reload/relog before they take effect.


 * Character and Account specific variables are stored server-side depending on
 * Character - Character-specific variables can be found in
 * Account - WoW account-wide variables can be found in
 * Other variables are game-wide and can be found in
 * Some CVars can only be set through SetCVar instead of, as returned by the 6th return value of