Script::SetCVar
function · ui · primitive
- Address
0x488c10· 211 bytes, up to0x488ce2- Signature
int __fastcall (lua_State *L)- Meaning
- Sets a script-writable CVar and signals CVAR_UPDATE when given a token
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/cvarverbs#writing-cvars-from-lua
Finding: Writing CVars from Lua in ui: CVar, option and engine information verbs
SetCVar("name", value [, token]) writes the text of value, or 0 when it is missing, through CVar::Set with the
callback flag on, and returns no value. It raises Usage: SetCVar("cvar", value [, "scriptCvar") for a non-string name, the not-found error,
and "%s" is read-only when flag bit 2 is set. When the third argument is a string or a
number it then signals CVAR_UPDATE (event 312) with the token as arg1 and the written text as arg2; two arguments
signal nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- CVar::LookupVisible cvar
- CVar::Set cvar
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.