What is a playerController?

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 )

any one can help? :<

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…

and so on.

Wouldn’t it be better if the playerControllerIDs were all System.Guid?

i haven’t try that.
but it seems that only 0,1,2,… make sense, for they can be indices of some sort of player controller array
u can have a try :slight_smile: