WoW:API SetCVar: Difference between revisions
Jump to navigation
Jump to search
SetCVar("cvar",value{,"scriptCVar"})
No edit summary |
(Added detail to describe function purpose and effects) |
||
| Line 1: | Line 1: | ||
{{API | <center>'''SetCVar("cvar",value{,"scriptCVar"})'''</center> | ||
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. | |||
---- | |||
{{WoW API}} | |||
Revision as of 10:41, 5 January 2006
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.