Skip to reading
Visual Scripting in Depth

52. Respond when video or music ends

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
Source table from 52. Respond when video or music ends, page 56
EntryFilter / supplied field
On Video EndOptional video asset ID; compares videoAssetId.
On Music EndOptional audio asset ID; compares musicAssetId.
Blank asset filterAccepts completion from any matching media source that reaches this entry.

1. Create the media playback in the relevant room, GUI or cutscene.

2. Add the appropriate end entry to a Visual Script.

3. Choose the exact asset when only that media should trigger the response.

4. Connect the entry to the small follow-up action: show a GUI, move on or change a flag.

5. Run the media to completion in Play.

6. Test any skip/stop route separately; do not assume it reports the same completion as natural playback.

These entry nodes provide a clean way to keep work after the actual media end instead of guessing its duration with Wait. They can coexist with other entries in a graph, but each route still needs its own intended connection.

Run Script supplies an editor Use context, not a finished videoAssetId or musicAssetId. A filtered media-end entry can correctly refuse that manual test. Test real playback.

Page 56 of 93Permalink
Go to page