Originally Posted by SDPhantom
GetCVar() has always acted this way. Blizzard later created GetCVarBool() that returns CVars stored as "0" and "1" as a boolean.
|
If I remember correctly, GetCVar used to return
"0" instead of just a
nil, breaking the following example ..
Code:
/run SetCVar("Sound_EnableSFX", 1-GetCVar("Sound_EnableSFX"))
I can remember that the above example script used to work, but not anymore now