Ambient music: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Initial creation of article on func_timescale)
(position irrelevant so it's logical entity)
 
(20 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{l4d2 point|ambient_music}} It is used to play L4D specific audio in the music layer.
{{LanguageBar}}
{{stub}}
{{This is a|logical entity|game=Left 4 Dead 2|name=ambient_music|sprite=ambient_generic.png}}
==KeyValues==
{{CD|CAmbientMusic}}
*{{KV Targetname}}
It is used to play L4D specific audio in the music layer, overriding music queued by the [[info_director|AI Director]].
*{{ScrollBox|title=message|
 
; Sound Name <[[sound]]>
 
: Name of the GameSound [[Soundscripts|entry]] to play.
== Keyvalues ==
}}
{{KV Targetname}}
==Inputs==
{{KV|Sound Name|intn=message|sound|Name of the GameSound entry to play. }}
{{I Targetname}}
 
{{ScrollBox|title=TimeScale|
== Inputs ==
; <code>Start</code>
{{I|PlaySound|Starts the sound.}}
: Start blending to the desired timescale.
{{I|StopSound|Stops the sound if it is playing.}}
; <code>Stop</code>
 
: Stop and blend back to the default timescale (1.0f).
[[Category:Sound System]]
; <code>Reset</code>
 
: Reset immediately to normal timescale (1.0f).
== See also ==
}}
* {{ent|ambient_generic}}
==Outputs==
* {{ent|env_soundscape}}
{{O Targetname}}
* {{ent|sound_mix_layer}}
==See also==
==External links==
[[category:Left 4 Dead 2]]

Latest revision as of 04:20, 29 April 2025

English (en)中文 (zh)Translate (Translate)
Ambient generic.png

ambient_music is a logical entity available in Left 4 Dead 2 Left 4 Dead 2.

C++ Class hierarchy
CAmbientMusic
CPointEntity
CBaseEntity

It is used to play L4D specific audio in the music layer, overriding music queued by the AI Director.


Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Sound Name (message) <sound>
Name of the GameSound entry to play.

Inputs

PlaySound
Starts the sound.
StopSound
Stops the sound if it is playing.

See also