Network Multiplayer Fundamentals - February 27 - Live from HQ

@MikhailPrinke
Something that is not clear to me after making 3 multiplayer games, is how you get a reference of a player to drive logic, for instance in our game we can cast votes to a player, if the player has an X amount of votes against him, he gets sentence to die. The casting we handle it through line traces and rpcs, but how can we make it so that we check for the amount of votes on a player, we tried player ID, through the player state, but for some reason it changes when someone join into the session.

The other thing is how to handle visibility through classes or teams online, in the link attached there are two ghost and a player, the ghost should see each other but the player shouldn’t be able to see them.

[video]https://gyazo.com/35103f7ebd7b4939517e1b988d38f634[/video]