52. Respond when video or music ends
| Entry | Filter / supplied field |
|---|---|
| On Video End | Optional video asset ID; compares videoAssetId. |
| On Music End | Optional audio asset ID; compares musicAssetId. |
| Blank asset filter | Accepts 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.
