Skip to reading
Action Lists & Events

Run an action on the right cutscene exit

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
PCA 3D ADVENTURE STUDIO  /  ACTION LISTS & EVENTS                                       0.86.4.3

A cue schedules an action during the scene. A lifecycle hook schedules an action when the scene starts or ends. Choose the place that should own each story change.

Source table from Run an action on the right cutscene exit, page 188
startUse for short setup before the cinematic clock starts.
completedUse for an outcome earned by watching through to the end.
skippedUse for the outcome of a player-requested skip.
interrupted / failedUse when another run takes over, or when a failure terminates the sequence.
finishedUse for short cleanup shared by all endings, after the reason-specific actions.
1.  Open Markers & Hooks in the Cutscene Timeline. Under hooks, supply a JSON array of ordinary
   registered actions for each exit you need. Keep existing arrays when editing.
Code example
"skipped": [
  {"type":"SetVariable","name":"intro_skipped","value":true}
],
"finished": [{"type":"HideGUI","guiId":"title_card"}]

These are entries inside the hooks object. Create the variable and title GUI in your project first. A hook has up to five seconds for its actions. Put a longer follow-up scene in the flow that launches it.

TEST TWO EXITS

Run the skippable introduction twice from the same starting state. Finish it once and skip it once. Check that the title closes in both cases, and that only the skip run sets intro_skipped.

Action Lists & Events                                                                            188
Page 188 of 189Permalink
Go to page