Ambient music: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (-removed irrelevant info)
Line 9: Line 9:


== Keyvalues ==
== Keyvalues ==
{{KV|Sound Name|sound|Name of the GameSound entry to play. }}
{{KV|Sound Name|intn=message|sound|Name of the GameSound entry to play. }}
{{KV Targetname}}
{{KV Targetname}}


Line 15: Line 15:
{{IO|PlaySound|Starts the sound.}}
{{IO|PlaySound|Starts the sound.}}
{{IO|StopSound|Stops the sound if it is playing.}}
{{IO|StopSound|Stops the sound if it is playing.}}
{{I Targetname}}


== Outputs ==
{{O Targetname}}
[[Category:Sound System]]
[[Category:Sound System]]

Revision as of 08:24, 5 October 2022

English (en)中文 (zh)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

Template:L4d2 point

Entity description

Ambient generic.png

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

Keyvalues

Sound Name (message) <sound>
Name of the GameSound entry to play.
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

Inputs

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