s&box docs

public abstract interface Sandbox.Component.ITemporaryEffect

Allows components to indicate their state in a generic way. This is useful if you have a temporary effect system in which you want to remove GameObjects when their effects have all finished.

Broader workflow and conceptual references connected to this API.

Methods

Showing 2 methods

public virtual void DisableLooping()

Indicates to the target object that we want it to die. If it's looping then it should stop now and put itself in a state where it will eventually die.

public static void DisableLoopingEffects(Sandbox.GameObject go)

Disable the any looping effects. This indicates to the target object that we want it to die soon.

Properties

Showing 1 properties

public virtual bool Sandbox.Component.ITemporaryEffect.IsActive { get; set; }

Should return true if the effect is active in a visible way

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Component.ITemporaryEffect

On this page