convar_t
local function on_paint()
local skyname = cvars.sv_skyname
print(skyname:get_string())
end
callbacks.add(e_callbacks.PAINT, on_paint)
Functions#
get_int#
retrieves the int value of the convar
Example
get_float#
retrieves the float value of the convar
Example
get_string#
retrieves the string value of the convar
Example
set_int#
sets the int value of the convar
Example
set_float#
sets the float value of the convar
Example
set_string#
sets the string value of the convar
Example
invoke_callback#
invokes the callback of the convar if its a concommand