Infra music: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "File:Infra music.png {{INFRA}} '''infra_music''' is a point entity available in INFRA. == Entity Description == It plays a soundscript (typically music) once or l...")
 
m (Substituted IO templates)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:Infra music.png]]
[[File:Infra music.png]]
{{INFRA}} '''infra_music''' is a [[point entity]] available in [[INFRA]].
{{this is a|point entity|game=INFRA|name=infra_music}}


== Entity Description ==
== Entity Description ==
Line 11: Line 11:


== Inputs ==
== Inputs ==
{{IO|Start|Starts the music.}}
{{I|Start|Starts the music.}}
{{IO|Stop|Stops the music.}}
{{I|Stop|Stops the music.}}
{{IO|Pause|Pauses the music.}}
{{I|Pause|Pauses the music.}}
{{IO|Resume|Resumes the music.}}
{{I|Resume|Resumes the music.}}
{{IO|FadeIn|Fades in the music from the beginning. Takes fade length in seconds as a parameter.|param=float}}
{{I|FadeIn|Fades in the music from the beginning. Takes fade length in seconds as a parameter.|param=float}}
{{IO|FadeOut|Fades out the music. 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 ==
{{IO|OnFinishedPlaying|Fired when the music has reached its end and finished playing.}}
{{O|OnFinishedPlaying|Fired when the music has reached its end and finished playing.}}
{{O Targetname}}
{{O Targetname}}
[[Category:INFRA]]
[[Category:Entities]]

Latest revision as of 07:54, 21 April 2025

Infra music.png infra_music is a point entity available in INFRA INFRA.

Entity Description

It plays a soundscript (typically music) once or looped, globally. Audio level is controlled by the music slider.

Keyvalues

Music ([todo internal name (i)]) <sound>
Soundscript to play.
Loop ([todo internal name (i)]) <boolean>
Loop the music until stopped?
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

Start
Starts the music.
Stop
Stops the music.
Pause
Pauses the music.
Resume
Resumes the music.
FadeIn <floatRedirectInput/float>
Fades in the music from the beginning. Takes fade length in seconds as a parameter.
FadeOut <floatRedirectInput/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.