I want the player to get teleported to a teleporter_device, without actually walking into a rift, using Verse. The Teleport method inside the device requires (Agent : agent), so here’s how I did it. Nothing happens, although my last Print still fires.
1 Like
I assume you have remembered to enable the teleporter. Though I also find it a little odd that you don’t have an @editable above your TeleportDrop declaration, so you can set it to an actual teleporter in the island.
1 Like
Thank you so much! I have it enabled to “Always” in the editor so it wasn’t that. I just forgot to add @editable like you said. I recreated this code from another project and missed this part. Appreciate the time.
1 Like
You could just do if (FirstPlayer := AllPlayers[0]) {TeleportDrop.Teleport(FirstPlayer)}
A player is a child of the agent class, so when a function requires an agent, you can use a player.
1 Like