Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API C CVar.SetCVar

Last wiki revision 2023-08-02

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

  • name: : CVar - Name of the CVar.
  • value: - The new value of the CVar.
  • success: - Whether the CVar was successfully set. Returns if attempting to set a secure cvar in combat.
  • Some settings require a reload/relog before they take effect.
  • CVars are not saved to Config.wtf until properly logging out or reloading the game.
  • Secure CVars cannot be set in combat and only with instead of.
  • Character and Account specific variables are stored server-side depending on CVar.

Source

https://warcraft.wiki.gg/wiki/API_C_CVar.SetCVar · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.