Download

Host Sessions on Server only

Hello,
When I start the server I want to create 10 sessions from the server so any player that connects to the server will be able to choose from 10 sessions. I created an event in my game instance to create the sessions.

  1. How can I call this event on the server only once? Should I create an actor and spawn it in the scene and use the hasAuthority function to execute it on the server? I am not sure if this is the best way of doing it. Any suggestions?

  2. Is there a way to uniquely identify each session so if a user wanted to join that same session later, they could?

  3. When I create 10 sessions and a user joins the session, How can I have the server listen for users wanted to connect and connect to a specific map? (I have a 2D game so users can spawn on different maps)

Below is the event I created in my game instance to create the 10 sessions.