Logic playmovie: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{base point multi|logic_playmovie|game1=Portal 2|game2=Alien Swarm}}
{{base point|logic_playmovie|since=Alien Swarm}} It plays a movie and allows for various playback options.
 
==Entity description==
Plays a movie and allows for various playback options.


==Keyvalues==
==Keyvalues==

Revision as of 07:22, 30 July 2011

Template:Base point It plays a movie and allows for various playback options.

Keyvalues

Movie to play ([todo internal name (i)]) <string>
Filename of the movie to play
Allow User to Skip ([todo internal name (i)]) <boolean>
Whether or not the user may skip the video with common keys
Loop Video ([todo internal name (i)]) <boolean>
If set to true, the movie will loop forever
Fade In Time ([todo internal name (i)]) <float>
Time it takes for the video to fade in
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

PlayMovie
Play the movie.
PlayMovieForAllPlayers
Play the movie for all connected players.
PlayLevelTransitionMovie <stringRedirectInput/string>
Plays a movie with specific settings used for level transitions. Pass the name of the movie in the parameters. To be fired at the end of a level.
FadeAllMovies
Fade movies out for all players connected.


Outputs

OnPlaybackFinished
Fired when the movie has completed playing back or was skipped by the user.