Infra music: Difference between revisions
Jump to navigation
Jump to search
Warning:
Deprecated (talk | contribs) (Changed to use INFRA point template) |
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
||
Line 1: | Line 1: | ||
[[File:Infra music.png]] | [[File:Infra music.png]] | ||
{{ | {{this is a|e0|game=infra|name=infra_music}} | ||
== Entity Description == | == Entity Description == |
Revision as of 09:15, 7 January 2024
infra_music
is an e0 available in INFRA.

- The {{{game}}} parameter is inconsistent with the name defined by the {{infra}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to INFRA.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
Entity Description
It plays a soundscript (typically music) once or looped, globally. Audio level is controlled by the music slider.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- Start
- Starts the music.
- Stop
- Stops the music.
- Pause
- Pauses the music.
- Resume
- Resumes the music.
- FadeIn <float >
- Fades in the music from the beginning. Takes fade length in seconds as a parameter.
- FadeOut <float >
- Fades out the music. Takes fade length in seconds as a parameter.
Outputs
- OnFinishedPlaying
- Fired when the music has reached its end and finished playing.