ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_PlayMovie

Play a movie.

On this page
Util_PlayMovie(name, fadeOut, fadeIn, onComplete, delay, onCompleteAfterMovie)

Description

Plays a movie file after fading out the screen. Fades back in and triggers onComplete once it ends. If fadeIn < 0, does not face back in once complete. If onCompleteAfterMovie is true, the onComplete function will play as soon as the movie is over, instead of after the fade-in

Parameters

  • nameStringrequired
  • fadeOutIntegeroptional
  • fadeInIntegeroptional
  • onCompleteLuaFunctionoptional
  • delayIntegeroptional
  • onCompleteAfterMovieBooleanoptional

Returns

Void

Source

Declared in the game's script sources at:

scar/scarutil.scar