Api Sandbox ConsoleSystem
class

ConsoleSystem

public static abstract sealed class ConsoleSystem

A library to interact with the Console System.

Methods

static Void SetValue(String name, Object value)

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

static String GetValue(String name, String defaultValue = null)

Get a console variable's value as a string.

static Void OnChangePropertySet(WrappedPropertySet<T> p)
static Void OnWrappedSet(WrappedPropertySet<T> p)
static T OnWrappedGet(WrappedPropertyGet<T> p)
static Void Run(String command)

Run this command. This should be a single command.

static Void Run(String command, Object[] arguments)

Run this command, along with the arguments. We'll automatically convert them to strings and handle quoting.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.ConsoleSystem