I am looking for a way that a player can have 3 characters at the same time.
And the manual told me to use AddPlayerForConnection(myConnection, theGameObject, playerControllerId);
or ClientScene.AddPlayer
but I just couldn’t find any specific declaration on what is a player controller, and how can i add a player controller for my client ( all i got was one value for playerControllerId: 0 )
after a few tests i solve this one myself.
playerControllerId is something that you make up, if a client has 3 characters you can call it 0,1,2; if 4 , then 0,1,2,3
just use it like
ClientScene.AddPlayer(connection, 0); // the first object
ClientScene.AddPlayer(connection, 1); // the second…