Env soundscape triggerable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
(Returned to its true nature)
Line 1: Line 1:
{{lang|Env soundscape triggerable}}
#redirect [[env_soundscape]]
[[File:env_soundscape.png|left]]{{base point|env_soundscape_triggerable}} This entity works just like {{ent|env_soundscape}} but can only be activated with {{ent|trigger_soundscape}}.
 
{{PreservedEnt}}
 
{{code class|CEnvSoundscapeTriggerable|soundscape.cpp}}
 
{{clr}}
 
==Keyvalues==
{{KV|Radius (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 (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 (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 {{ent|info_target}} or anything visible).}}
{{KV EnableDisable}}
{{KV BaseEntity}}
 
==Inputs==
{{IO|ToggleEnabled|Toggle the soundscape on/off.}}
{{I EnableDisable}}
{{I BaseEntity}}
 
==Outputs==
{{IO|OnPlay|Fired when this soundscape becomes the active one.}}
{{O BaseEntity|l4d=1}}
 
==See Also==
*[[Soundscapes]]
*[[Soundscape lists]]
 
[[Category:Sound System]]

Revision as of 13:33, 7 October 2018

Redirect to: