cvar
cvar.xxx
Functions
get_int
local var = cvar.sv_cheats
print(var:get_int())
Returns:
Value
Datatype
cvar's value as an integer
number
get_float
local var = cvar.weapon_recoil_scale
print(var:get_float())
Returns:
Value
Datatype
cvar's value as a float
number
get_string
local var = cvar.sv_skyname
print(var:get_string())
Returns:
Value
Datatype
cvar's value as a string
string
set_int
local var = cvar.sv_cheats
var:set_int(1)
Parameter
Datatype
Description
value
number
integer value to set cvar to
set_float
local var = cvar.weapon_recoil_scale
var:set_float(0)
Parameter
Datatype
Description
value
number
floating point value to set cvar to
set_string
local var = cvar.sv_skyname
var:set_string("vertigo")
Parameter
Datatype
Description
value
string
string value to set cvar to
Last updated