Download

Second player's pawn isn't being possessed?

I have a custom player pawn class and a custom player controller class. The gamemode I’m using has them both as the defaults for the pawn and player controller respectively. For some reason, when I launch two clients (one server and one client), only the server-side client finds its pawn and possesses it. When I tried to debug this, I checked to see if the player controllers could find the pawns in the level. The server-side player controller can see both pawns (i.e. GetAllActorsOfClass() returns both pawns), but the second client cannot see either pawn (GetAllActorsOfClass() returns nothing), even though both pawns and both controllers appear in the world outliner. What could be causing this? I’d really appreciate any help!