Methodsclass

Built-in static methods available to Doo scripts.

objectMethods
Namespace
global
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Doo.Methods

Methods6

Showing 6 methods

public static Sandbox.GameObject GameObjectClone(Sandbox.GameObject gameObject, bool enabled = True, bool networked = True)PUBLICSTATIC

Clones a GameObject, optionally spawning it on the network.

ParameterTypeDescription
gameObjectGameObject
enabled = Truebool
networked = Truebool
Returns:GameObject

public static void GameObjectDestroy(Sandbox.GameObject gameObject)PUBLICSTATIC

Destroys the given GameObject.

ParameterTypeDescription
gameObjectGameObject
Returns:void

public static void LogError(string text)PUBLICSTATIC

Logs an error message.

ParameterTypeDescription
textstring
Returns:void

public static void LogInfo(string text)PUBLICSTATIC

Logs an informational message.

ParameterTypeDescription
textstring
Returns:void

public static void LogWarning(string text)PUBLICSTATIC

Logs a warning message.

ParameterTypeDescription
textstring
Returns:void

On this page