11. Teleporting Players After a Cutscene
11. Teleporting Players After a Cutscene
To create the opening scene where the player is part of the cutscene, you need to teleport the player to the basement after the opening cutscene finishes playing. To do this, youll use the code snippet below:
To create the opening scene where the player is part of the cutscene, you need to teleport the player to the basement after the opening cutscene finishes playing. To do this, you’ll use the code snippet below:
To create the opening scene where the player is part of the cutscene, you need to teleport the player to the basement after the opening cutscene finishes playing. To do this, you’ll use the code snippet below:
| | |
| --- | --- |
| | AllPlayers := GetPlayspace().GetPlayers() |
| | for (Agent : AllPlayers): |
| | Teleporter.Teleport(Agent) |
| | |
Copy full snippet
This piece of code is designed to grab all players on your island and apply a function to them. In this case, teleportation.
Teleporting Players after a Cutscene
Create a new Verse device named **cutscene_**trasnporter using Verse Explorer, and drag the device into the level. Double-click cutscene_transporter.verse from Verse Explorer to open the script in Visual Studio Code.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.