GetPlayerController in multiplayer context

Hello! I was wondering how one would go around referencing the right player controller in a multiplayer game. Because I notice that the node uses an index, but how would I know which index to get for the different players?

In the gamemode you can call onpostlogin. From that you can add each Player Controller to an Array and can then over a for each Loop find the right index. But it depends on what you want to do.

What’s onpostlogin?

Event in GameMode class, there also OnLogout. Remeber That all PlayerControllers are keeped only in servers same as GameMode, if you need clients to get some data from it you need to place it in PlayerState or GameState class