Tut | Cutscene - JasXSL/GoThongs GitHub Wiki

In this tutorial we will make a little cutscene that focuses the players' cameras on a table with a book, and outputs a message that will show on their HUDs, then clear the camera.

I have started by setting up a generic trigger, with the trigger ID "tableScene".

Now let's set our camera to what we want the players to see and say "cam" in chat. The dev HUD will output some code for you to use. Keep in mind that camera position is always relative to the sender, whereas rotation is a global. As such, if you need to move the root prim of the level somewhere, then the camera moves along with it. And likewise if you need to rotate the level then the camera will fail to rotate along with it.

I'll put the code in the trigger event wrapped within runOnPlayers(TARG_KEY) so that the camera is set on all players. Then set a timer for 2 sec before we output the text.

Now all that remains is to handle the rest of the cinematic in the _MAIN script's timer event.