Assigning controllers in local multipalyer

Hi Betag

Player Controllers are only accessible by the owning client, even on server side.

Inside the Game Mode class there is an event called “OnPostLogin” which is called each time a controller is registered with the server. Use this event to assign whatever data you need to the connecting clients.

If you want to share data between player controllers (such as names, score, lives etc), you will need to implement the Player State class (owned by the player controller). Set what data you want in this class on the server and it will be visible to all clients by accessing the “Players” array inside the Game State class.

Hope this helps.

Alex