This article's documentation is for anything that uses the Source engine. Click here for more information.

env_soundscape_triggerable

From Valve Developer Community
Jump to: navigation, search
English (en)
... Icon-Important.png
class hierarchy
CEnvSoundscapeTriggerable defined in soundscape.cpp
CEnvSoundscape
CServerOnlyEntity
CBaseEntity
Env soundscape.png

env_soundscape_triggerable is a point entity available in all Source Source games. This entity is required when you want to use trigger_soundscape otherwise works just like env_soundscape.

Note.pngNote:This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourcePortalTeam Fortress 2Left 4 DeadLeft 4 Dead 2Portal 2Counter-Strike: Global Offensive.
  • On a new round, its properties including its position will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non preserved entities may have undesirable effects.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Radius (radius) <integer>
Defines the entity's sphere of influence. Players must also have LOS to the entity for it to trigger. -1 means infinite range.
Soundscape (soundscape) <string>
The name of the soundscape to play. Some examples are provided, but the actual list is not. The best way to browse soundscapes is from within the game with the playsoundscape console command.
Sound Position 0 (position0) to Sound Position 7 (position7) <targetname>
Entities which define the location from which any positioned sounds play. Must be entities that the client knows about (e.g info_target or anything visible).

EnableDisable:

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

ToggleEnabled
Toggle the soundscape on/off.
Enable
Disable
Enable/Disable the soundscape

Outputs

OnPlay
Fired when this soundscape becomes the active one.

See also