đ˛cvar
Example
Functions:
:call
cvar_object:call(...)
Executes a ConCommand or cvar callback, passing its arguments to it.
:int
cvar_object:int():
number
Gets or sets the ConVar int value.
:float
cvar_object:float():
number
Gets or sets the ConVar float value.
:string
cvar_object:string([ value: any ]):
string
Gets or sets the ConVar string value.
:set_callback
You can access the cvar_object
, old_value
and new_value
by adding them to the function arguments.
cvar_object:set_callback(callback: function)
Registers the callback to the specified ConVar/Command. The registered function will be called every time the specified convar value is updated.
:unset_callback
cvar_object:unset_callback(callback: function)
Unregisters the callback that was set via the :set_callback
function from the specified ConVar/Command.
Last updated