[Networking] Can't give Player 2 the camera that I want.

In Multiplayer, I want to give the 2 players their own cameras that are predefined in the level. It works for Player 1 (server) but doesn’t work on Player2.

This is how I try to do it:

  1. GameMode: After Event OnPostLogin the GameMode gathers all the cameras, and gets the reference to the one called “Player1Camera” for the 1st, and “Player2Camera” for the 2nd player, and sends the reference to the PlayerController’s Custom Event.
  2. PlayerController tries to use that reference to call “Set View Target with Blend”, but the PlayerController only gets a “None” reference instead of the Player2Camera.

Is it because Player2Camera only exists on the server, or why? How should I modify it so it would works as I want?

I think player 2 is always player 0 on the client side, and player 2 on the server side, therefor just assign your camera to player 0 on the client, but make the server sends a message to player 2 letting them know which camera to blend to.

That’s what I kinda tried to do, but in the end I made a workaround by putting 2 (tilted) PlayerStart object at the position of the cameras and spawning new empty PlayerPawns there, locked from any movement or rotation.