C_CVar .RegisterCVar
Jump to navigation
Jump to search
Temporarily registers a custom console variable.
C_CVar.RegisterCVar(name [, value]) RegisterCVar
Arguments
- name
- string - Name of the custom CVar to set.
- value
- string|number?
= "0"
- Initial value of the CVar.
Details
- You can register your own CVars. They are set game-wide and will persist after relogging/reloading but not after closing the game.
Patch changes
Patch 10.0.7 (2023-03-21): Registered CVars were written to disk, which conflicted with another issue, this was fixed in build 10.0.7.48838.[1]
Patch 8.1.5 (2019-03-12): Namespaced to C_CVar.RegisterCVar()
.
Patch 1.0.0 (2004-10-08): Added.