Debug Commands
scripts/vscripts/alyxlib/debug/commands.lua
Functions
RegisterAlyxLibCommand
Registers a command for the AlyxLib library.
Parameters
name
string
Name of the command that will be given in the consolefunc
function
Function to run when the command is calledhelpText(optional)
string
Description of the commandflags(optional)
number
Flags for the command
RegisterAlyxLibConvar
Registers a new AlyxLib console variable.
If defaultValue or callback is a function, the convar will be
created using EasyConvars.
Parameters
name
string
Name of the convar that will be given in the consoledefaultValue
string,function
Default value of the convar or initializer functionhelpText(optional)
string
Description of the convarflags(optional)
integer
Flags for the convarcallback(optional)
function
Update function called after the value has been changed
RegisterAlyxLibEasyConvar
Registers a new AlyxLib console variable.
Parameters
name
string
Name of the convar that will be given in the consoledefaultValue
string
Default value of the convarhelpText(optional)
string
Description of the convarflags(optional)
integer
Flags for the convarpostUpdate(optional)
function
Update function called after the value has been changedpersistent(optional)
boolean
Whether the convar should be persistent