API Referenceglobal
Methodsclass
Built-in static methods available to Doo scripts.
object→Methods
Methods6
Showing 6 methods
public static Sandbox.GameObject GameObjectClone(Sandbox.GameObject gameObject, bool enabled = True, bool networked = True)
Clones a GameObject, optionally spawning it on the network.
| Parameter | Type | Description |
|---|---|---|
| gameObject | GameObject | — |
| enabled = True | bool | — |
| networked = True | bool | — |
public static Sandbox.GameObject GameObjectCloneEx(Sandbox.GameObject gameObject, Vector3 position, Rotation angles, Vector3 scale)
Clones a GameObject with an explicit position, rotation, and scale.
| Parameter | Type | Description |
|---|---|---|
| gameObject | GameObject | — |
| position | Vector3 | — |
| angles | Rotation | — |
| scale | Vector3 | — |
public static void GameObjectDestroy(Sandbox.GameObject gameObject)
Destroys the given GameObject.
| Parameter | Type | Description |
|---|---|---|
| gameObject | GameObject | — |
Returns:
void—public static void LogError(string text)
Logs an error message.
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
Returns:
void—public static void LogInfo(string text)
Logs an informational message.
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
Returns:
void—public static void LogWarning(string text)
Logs a warning message.
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
Returns:
void—No results match this filter.