I need to create a server a group of players can join, and the server then becomes locked

I’m looking to create a system in my game where players can queue and be teleported to a new instance where they will fight a boss together or potentially waves of enemies. This means I would need a server to be created for said players, and then have that server be unjoinable to those who did not queue.

Should I use TeleportToPrivateServer() and create a reserved server? I heard the generated IDs are created forever and don’t know much about the function or teleport service as a whole. Can I have this function be called infinitely each time players queue or what would be the most effective way of doing this?

4 Likes

Nevermind. Looks like there is a property of TeleportOptions called “ShouldReserveServer” that when set to true just automates it all, sets the reserved server properly. Pretty intuitive, call TeleportAsync() and allocate the TeleportOptions accordingly. Hopefully this might help anybody with the same question as I did.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.