ConsoleSystemclass

objectConsoleSystem
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.ConsoleSystem

Methods5

Showing 5 methods

public static string GetValue(string name, string defaultValue = null)PUBLICSTATIC

Get a convar value as a string

ParameterTypeDescription
namestring
defaultValue = nullstring
Returns:string

public static float GetValueFloat(string name, float defaultValue = 0)PUBLICSTATIC

Get a convar value as an float if possible.

ParameterTypeDescription
namestring
defaultValue = 0float
Returns:float

public static int GetValueInt(string name, int defaultValue = 0)PUBLICSTATIC

Get a convar value as an integer if possible.

ParameterTypeDescription
namestring
defaultValue = 0int
Returns:int

public static void Run(string command)PUBLICSTATIC

Run this command. This should be a single command.

ParameterTypeDescription
commandstring
Returns:void

public static void SetValue(string name, object value)PUBLICSTATIC

Try to set a console variable. You will only be able to set variables that you have permission to set.

ParameterTypeDescription
namestring
valueobject
Returns:void

On this page