API C_CVar.SetCVarBitfield

From Wowpedia
Jump to: navigation, search

Sets the bitfield of a console variable.

success = C_CVar.SetCVarBitfield("name", index, value [, "scriptCVar"])

Arguments

name 
string - name of the CVar to set the bitfield of.
index 
number - bitfield index.
value 
boolean - the new value of the bitfield.
scriptCVar 
string (optional) - if passed, fires the CVAR_UPDATE event with this as the first parameter.

Returns

success 
boolean - whether the CVar was successfully set.

Patch changes

See also