Ambient music: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (clean up, replaced: See Also → See also, {{Language subpage → {{langsp)
(-sprite move)
Line 1: Line 1:
{{langsp}}
{{langsp}}
{{CD|CAmbientMusic}}
{{CD|CAmbientMusic}}
[[File:ambient_generic.png|left|link=]]
It is used to play L4D specific audio in the music layer, overriding music queued by the [[info_director|AI Director]].
It is used to play L4D specific audio in the music layer, overriding music queued by the [[info_director|AI Director]].
{{clr}}
 


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


== Inputs ==
== Inputs ==

Revision as of 07:41, 19 February 2024

English (en)中文 (zh)Translate (Translate)
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