How to get a controller reference as a client?

Hi,

I want to make a multiplahyer game where the players can order around some pawns on the map. My problem is that the players (clients) can’t get a reference of the pawn controllers, because they exist only on the server.

Any ideas?

Create a Variable of the Pawns as Array in the GameMode, and replicate it!
So every Client has the filled array as the Server.

Then you Get the GameMode and access the Array (perform a valid check to be sure) of the Pawns.

Hi, thanks for the reply. When I use get Game mode with a valid check in the client it always comes out false. I will try the same with game state, and see if that helps.

I tried it, and I still can’t get the Controller references from the replicated variable on the client.

Have you tried GetControlledPawn with a reference to self plugged into GetController in the player pawns? Something simple like that?