I’m trying to create an array for the player controllers but I’m having a hard time finding a nice and tidy solution for this.
This code code doesn’t seem to work:
void AMyGameModeBase::PostLogin(APlayerController* NewPlayer)
So I tried to get a all the pawns with GetAllActorsOfClass but for some reason it’s not a straight forward procedure to get the player controller of the Pawn.
Could someone tell me what would be a nice and elegant solution to this problem?