Infra music: Difference between revisions
Jump to navigation
Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
m (Substituted IO templates) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
[[File:Infra music.png]] | [[File:Infra music.png]] | ||
{{this is a| | {{this is a|point entity|game=INFRA|name=infra_music}} | ||
== Entity Description == | == Entity Description == | ||
Line 11: | Line 11: | ||
== Inputs == | == Inputs == | ||
{{ | {{I|Start|Starts the music.}} | ||
{{ | {{I|Stop|Stops the music.}} | ||
{{ | {{I|Pause|Pauses the music.}} | ||
{{ | {{I|Resume|Resumes the music.}} | ||
{{ | {{I|FadeIn|Fades in the music from the beginning. Takes fade length in seconds as a parameter.|param=float}} | ||
{{ | {{I|FadeOut|Fades out the music. Takes fade length in seconds as a parameter.|param=float}} | ||
{{I Targetname}} | {{I Targetname}} | ||
== Outputs == | == Outputs == | ||
{{ | {{O|OnFinishedPlaying|Fired when the music has reached its end and finished playing.}} | ||
{{O Targetname}} | {{O Targetname}} |
Latest revision as of 07:54, 21 April 2025
infra_music
is a point entity available in INFRA.
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.