WoW:API SetCVar: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(upgraded deprecated template)
Line 1: Line 1:
{{wowapi}}
<center>'''SetCVar("cvar",value{,"scriptCVar"})'''</center>
<center>'''SetCVar("cvar",value{,"scriptCVar"})'''</center>


Line 8: Line 9:


See [[Config.wtf defaults]] for more.
See [[Config.wtf defaults]] for more.
----
{{WoW API}}

Revision as of 17:31, 6 January 2007

WoW API < SetCVar

SetCVar("cvar",value{,"scriptCVar"})

SetCVar allows you to set the content of the variables defined in the config.wtf file (which is in the WTF directory).

Settings changed in this manner are applied to the game UI immediately, however settings are not saved until exit and settings which were previously not defined in config.wtf are not available to GetCVar until the file has been saved (at logout).

SetCVar("UnitNamePlayer", "1") - enables player nametags.

See Config.wtf defaults for more.