Hello. I’ve been working on improvements to the piece of software I’ve been working on for a while and was trying to figure out a way to prevent players from signing into the same “seats” (the program is being used in a classroom setting, so table and seat numbers are used for a lot of the internal connections and for saving). If possible, I would like to stop a player from connecting to the server at all if they’ve chosen a seat that is already occupied.
I tried doing this by making simple edits to the NetworkManager and NetworkManagerHUD scripts that checks the list of seats that have already been signed into and skips running StartClient() if the seat is occupied, but since NetworkManager itself doesn’t synchronize its variables across the network (at least as far as I can tell), I don’t have a good way of seeing who has signed in already. Is there some way to access a script on the server before the client has actually signed in so that I can check whether the seat chosen is occupied or not? I can post bits of code if that would help, but the pieces I’ve written are fairly basic thus far.