Advanced Sessions - Lobby Issue

Hello Guys,

I have a big issue…

I used the plugin “Advancend Sessions Steam” and i want to make a lobby.
Each player entering the Lobby is stored in an array.

(I called the Player Controller “PC_Lobby”)

Game Mode:

Then in want all players to update (Current Players, etc)

Player Controller:

BUT only the server sees all players. The clients only see the server stored in that array.

Bild_2022-02-08_221713

And i don’t know what to do…

pls help :frowning:

Check RPC and replications

What is RPC and where do i find this?

RPCs are basically your custom events you make, but generally are the ones that “Run On Server” or “Multicast”. Maybe try making your “UpdateClients” custom event to Run On Server and reliable.

I tryed, but it changed nothing.
The Game Mode is already running on the server.
So it makes no difference if i set the custom event “Run On Server”

You can’t share other players playercontrollers since they are only replicated to the owner.

You should just use the playerstate instead. This is where you keep info that is unique to each player. No need to store an array in the gamemode either since playerstates are created on login and destroyed on logout.

1 Like

Okay how do i do that?

Alright. It worked!

Thank you very much :slight_smile: