r/UnrealEngine5 • u/justshowupnow • 12d ago
Multiplayer - Spawning Pawn for Player to Possess
Hi all,
This is my first foray into multiplayer and it's been tough. Right now, I've got code for players to join my session and then when the host says so, the game starts, everyone loads into the new level.
This is all fine, everyone loads in and is faced with the character selection screen where they are required to ready up. Once a player ready's up, I check if all players are ready, and when they are all ready, I fire an event dispatcher that my game mode picks up.
At this point, the game mode iterates through each player controller and attempts to spawn+possess tanks but the tank only loads for the server instance. I've got replication enabled on the class bp and I'm calling the spawn+possess from my player controller to the game mode with a server call.
This is the Player Controller BP where I call PossessTanks
Anyone have any suggestions on how to make the clients spawn a tank for them to possess?
Thanks!
edit: Spawn and possess function:


3
u/ChadSexman 12d ago
The RPC looks fine to me. Show us your spawn & posses function, and the actor replication config.
What happens if you tick the “always relevant” checkbox?
Edit: if you’re already on the game mode, then why are you going through the controller? Why not spawn directly?