Env soundscape triggerable: Difference between revisions
Jump to navigation
Jump to search

Important:This entity is required when you want to use trigger_soundscape otherwise works just like env_soundscape.
Important:This is a preserved entity in 






.
If the game has round restart mechanics this entity may not behave as expected:
No edit summary |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
Line 1: | Line 1: | ||
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Env soundscape triggerable}}{{CD|CEnvSoundscapeTriggerable|file1=soundscape.cpp}} | <!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Env soundscape triggerable}}{{CD|CEnvSoundscapeTriggerable|file1=soundscape.cpp}} | ||
[[File:env_soundscape.png|left]]{{this is a|name=env_soundscape_triggerable | [[File:env_soundscape.png|left]]{{this is a|point entity|name=env_soundscape_triggerable}} | ||
{{important|This entity is required when you want to use {{ent|trigger_soundscape}} otherwise works just like {{ent|env_soundscape}}.}} | {{important|This entity is required when you want to use {{ent|trigger_soundscape}} otherwise works just like {{ent|env_soundscape}}.}} | ||
{{PreservedEnt|env_soundscape_triggerable}} | {{PreservedEnt|env_soundscape_triggerable}} |
Revision as of 16:55, 17 May 2024


![]() |
---|
CEnvSoundscapeTriggerable |
![]() |
env_soundscape_triggerable
is a point entity available in all Source games.










If the game has round restart mechanics this entity may not behave as expected:
|
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- 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).
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Inputs
- ToggleEnabled
- Toggle the soundscape on/off.
- Enable
- Disable
- Enable/Disable the soundscape
Outputs
- OnPlay
- Fired when this soundscape becomes the active one.