C_CVar. SetCVar
functionimplementedavailable in: camelot
Sets a console variable.
function C_CVar.SetCVar( name: string, value: string?): booleanParameters
| name | type | description |
|---|---|---|
name | string | CVar - Name of the CVar. |
value | string? | The new value of the CVar. |
Returns
success · boolean · Whether the CVar was successfully set. Returns nil if attempting to set a secure cvar in combat.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
- Requires non read only c var.
- Requires non secure c var.
- Requires valid and public c var.
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (CVarScripts system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.