logic_playmovie
Jump to navigation
Jump to search
Code classes:
CLogicPlayMovie
CLogicalEntity
CServerOnlyEntity
CBaseEntity
(all ents)
logic_playmovie
is a point entity present in all games since Alien Swarm. It plays a .bik video from the
media/
folder. Used in parts of to play SFM videos ingame.
Keyvalues[edit | edit source]
- Movie to play
(MovieFilename)
<string>
- A file in the
media/
folder including the.bik
extension. - Allow User to Skip
(allowskip)
<boolean>
- Allows the player to skip the video using keys such as Space or Esc.
Loop Video(loopvideo)
<boolean>
(available in all games since)
- Loops the video. Only applies when using PlayLevelTransitionMovie.
Fade In Time(fadeintime)
<float>
(available in all games since)
- Video will fade in from black over this many seconds. Only applies when using PlayLevelTransitionMovie.
Inputs[edit | edit source]
- PlayMovie
- Plays the video. Bug:
HUD becomes broken if the
!activator
is not a player. - __MovieFinished (Not in FGD)
- Automatically sent to the entity when the video finishes or is skipped. Fires the OnPlaybackFinished output.
- PlayMovieForAllPlayers (available in all games since
)
- Plays the video to both players in coop.
- PlayLevelTransitionMovie (available in all games since
)
- Plays the video over the loading screen. Send this input at the very end of the map. Does not take a parameter like the FGD says.
- FadeAllMovies (available in all games since
)
- Fades the movie to black then stops it.
Outputs[edit | edit source]
- OnPlaybackFinished
- Fires when the video finishes or is skipped.