Class SoundEventPlayer.Soundscape
Namespace: ValveResourceFormat.Renderer.Audio
Assembly: Renderer.dll
A soundscape region (env_soundscape): while the listener is within of
and can see it, plays as the ambient bed - a singlesound event, or every event a soundscape resolves to when
. A class so the registering entity can toggle live.public sealed class SoundEventPlayer.SoundscapeInheritance
object ← SoundEventPlayer.Soundscape
Constructors
Soundscape(Vector3, float, string, bool)
A soundscape region (env_soundscape): while the listener is within of
and can see it, plays as the ambient bed - a singlesound event, or every event a soundscape resolves to when
. A class so the registering entity can toggle live.public Soundscape(Vector3 position, float radius, string name, bool scripted)Parameters
position Vector3
radius float
name string
scripted bool
Properties
Enabled
Gets or sets whether the region can claim the listener. Disabling does not silence an ambient it already started.
public bool Enabled { get; set; }Property Value
Name
Gets the sound event or scripted soundscape the region plays.
public string Name { get; }Property Value
Position
Gets or sets where the region is centered.
public Vector3 Position { get; set; }Property Value
Radius
Gets how far the region reaches, or a negative value for one with no range limit.
public float Radius { get; }Property Value
Scripted
Gets whether is a scripted soundscape rather than a sound event.
public bool Scripted { get; }Property Value
Unlimited
Gets whether this region covers the whole map ("radius" authored as -1).
public bool Unlimited { get; }Property Value
Methods
InRange(float)
Gets whether a listener distance away is within range of this region.
public bool InRange(float distance)Parameters
distance float

