Retrieve players actorID when they join the room
Options
veldt
✭
in Photon Bolt
I want to create a dictionary and store the players by their ActorID or other unique identifier right after they connect to the server room.
// insert the player into the dictionary
How do I retrieve their ActorID?
Is this the correct method?
private Dictionary<string/number, Player> playersInGame = new Dictionary<string/number, Player>();
public override void Connected (BoltConnection connection) {
// insert the player into the dictionary
}
How do I retrieve their ActorID?
Is this the correct method?
0
Comments
-
Each connection has a unique connectionID, and each entity has a unique network ID.
https://doc-api.photonengine.com/en/bolt/current/class_bolt_connection.html#a5d4d01655021d9a05ad7937df6b04658
https://doc-api.photonengine.com/en/bolt/current/class_bolt_entity.html#a5105658a40acd4b67c7f71fe9c5b71011