How to assign an integer to players on startup?
Options
Hey all! Probably a stupid simple question, but I'd like to assign a number 1-3 for each of the three players in my room. I've tried adding counters or doing some work on the master's end to create a single dictionary mapping userID to int and then sending that dictionary to other players. I understand the basics of RPCs, but I think the issue I keep hitting is that I'll encounter race conditions that make the system unreliable.
Any insight into how to approach this problem would be excellent!
Any insight into how to approach this problem would be excellent!
0
Answers
-
Hi @CyberGrape,
Thank you for choosing Photon!
There is a UtilityScript that does this, check out PlayerNumbering for PUN2.0