s&box docs

public class Sandbox.SoundscapeTrigger : Sandbox.Component

Plays a soundscape when the listener enters the trigger area.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 5 methods

protected virtual void DrawGizmos()

protected virtual void OnDestroy()

protected virtual void OnDisabled()

protected virtual void OnUpdate()

public bool TestListenerPosition(Vector3 position)

Return true if they should hear this soundscape when in this position

Properties

Showing 8 properties

public Vector3 Sandbox.SoundscapeTrigger.BoxSize { get; set; }

The size of the Soundscape when `Sandbox.SoundscapeTrigger.Type` is set to `Sandbox.SoundscapeTrigger.TriggerType.Box`.

public float Sandbox.SoundscapeTrigger.Radius { get; set; }

The radius of the Soundscape when `Sandbox.SoundscapeTrigger.Type` is set to `Sandbox.SoundscapeTrigger.TriggerType.Sphere`.

public bool Sandbox.SoundscapeTrigger.StayActiveOnExit { get; set; }

When true the soundscape will keep playing after exiting the area, and will only stop playing once another soundscape takes over.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.SoundscapeTrigger

On this page