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

Env soundscape triggerable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
No edit summary
Line 4: Line 4:
{{PreservedEnt|env_soundscape_triggerable}}
{{PreservedEnt|env_soundscape_triggerable}}
__NOTOC__
__NOTOC__
==Keyvalues==
{{KV Targetname}}
{{KV|Radius|intn=radius|int|Defines the entity's sphere of influence. Players must also have [[LOS]] to the entity for it to trigger. -1 means infinite range.}}
{{KV|Soundscape|intn=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 <code>playsoundscape</code> console command.}}
{{KV|Sound Position 0|intn=position0|to=Sound Position 7|intn2=position7|targetname|Entities which define the location from which any positioned sounds play. Must be entities that the [[client]] knows about (e.g {{ent|info_target}} or anything visible).}}
{{KV EnableDisable}}


==Inputs==
{{OtherKIO|env_soundscape|All}}
{{IO|ToggleEnabled|Toggle the soundscape on/off.}}
{{IO|Enable}}
{{IO|Disable|Enable/Disable the soundscape}}
 
==Outputs==
{{IO|OnPlay|Fired when this soundscape becomes the active one.}}


==See also==
==See also==

Revision as of 14:25, 8 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CEnvSoundscapeTriggerable
CEnvSoundscape
CServerOnlyEntity
CBaseEntity
C++ soundscape.cpp
Env soundscape.png

env_soundscape_triggerable is a point entity available in all Source Source games.

Icon-Important.pngImportant:This entity is required when you want to use trigger_soundscape otherwise works just like env_soundscape.
Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Portal 2Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname 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.


Note.pngNote:All Keyvalues / Inputs / Outputs are same as env_soundscape.

See also