Skip to content

convar_t

Functions

get_int(): number

Returns the int value

1
2
local convar = se.get_convar("r_jiggle_bones")
local value = convar:get_int()

get_float(): number

Returns the float value

1
2
local convar = se.get_convar("r_aspectratio")
local value = convar:get_float()

get_string(): string

Returns the string

1
2
local convar = se.get_convar("sv_skyname")
local str = convar:get_string()

set_int(value)

Type Name
number value

Setting the int value

1
2
local convar = se.get_convar("r_jigglebones")
convar:set_int(0)

set_float(value)

Type Name
number value

Setting the float value

1
2
local convar = se.get_convar("r_aspectratio")
convar:set_float(1.333)

set_string(value)

Type Name
string value

Setting the string

1
2
local convar = se.get_convar("sv_skyname")
convar:set_string("sky_dust")