API ReferenceEditor
ConsoleSystemclass
object→ConsoleSystem
Methods5
Showing 5 methods
public static string GetValue(string name, string defaultValue = null)
Get a convar value as a string
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| defaultValue = null | string | — |
Returns:
string—public static float GetValueFloat(string name, float defaultValue = 0)
Get a convar value as an float if possible.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| defaultValue = 0 | float | — |
Returns:
float—public static int GetValueInt(string name, int defaultValue = 0)
Get a convar value as an integer if possible.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| defaultValue = 0 | int | — |
Returns:
int—public static void Run(string command)
Run this command. This should be a single command.
| Parameter | Type | Description |
|---|---|---|
| command | string | — |
Returns:
void—public 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.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| value | object | — |
Returns:
void—No results match this filter.