StartCutscene(CutsceneSkipType)
Marks the start of a cutscene. Once your script passes this point, the player can
choose to skip a portion by pressing a key or the mouse button. This is useful for
things like introduction sequences, where you want the player to be able to skip
over an intro that they've seen before.
The CutsceneSkipType determines how they can skip the cutscene:
eSkipESCOnly
by pressing ESC only
eSkipAnyKey
by pressing any key
eSkipMouseClick
by clicking a mouse button
eSkipAnyKeyOrMouseClick
by pressing any key or clicking a mouse button
eSkipESCOrRightButton
by pressing ESC or clicking the right mouse button
You need to mark the end of the cutscene with the EndCutscene command.
Be very careful with where you place the corresponding EndCutscene command.
The script must pass through EndCutscene in its normal run in order for the skipping
to work - otherwise, when the player presses ESC the game could appear to hang.
See Also: EndCutscene,
SkipUntilCharacterStops,
Game.InSkippableCutscene,
Game.SkippingCutscene
|