# Why does an extra player character spawn in multiplayer?

**URL:** <https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 13, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730 "2024-03-13T16:17:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bradjoe1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bradjoe1](https://forums.unrealengine.com/u/Bradjoe1)\
**Post date:** [March 13, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/1 "2024-03-13T16:17:39Z")

</div>

I have a lobby system in which when all players ready up they seamless travel to another level where the characters spawn. For some reason anytime the server is not the last one to ready up it will spawn an extra character (who is obviously not possed)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/7/c570c31226a4c4917ad7dedc60043f512536a5d2.png)  
This is the code inside the controller  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/c/5bcd13d58db956ea57d448d385015ce8538f4ef3.png)  
this is the start game inside the game mode

Do you think its due to the ready-up system, wether the code is being run in the controller, or something else?

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 13, 2024, 5:29pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/2 "2024-03-13T17:29:32Z")

</div>

Hey @Bradjoe1!

I’m not an extremely well-versed individual when it comes to online multiplayer, so I’m hoping that someone else has some ideas. But I will say that first you need to know everything you can about the problem before you come up with an answer! To that end- is there a way you could differentiate the characters so you could determine if it’s creating a copy of the host’s character or a client’s character? That could lead you closer to the solution!

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [March 13, 2024, 7:55pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/3 "2024-03-13T19:55:13Z")

</div>

Is this a Listen Server lobby setup? As in is a Player hosting the Lobby?

Is the Server being connected to a Listen Server… Same Hosting client?

---

<div class="post-metadata">

**Author:** ![Bradjoe1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bradjoe1](https://forums.unrealengine.com/u/Bradjoe1)\
**Post date:** [March 13, 2024, 8:14pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/4 "2024-03-13T20:14:16Z")

</div>

Yes this is a listen server, the players host.

---

<div class="post-metadata">

**Author:** ![Bradjoe1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bradjoe1](https://forums.unrealengine.com/u/Bradjoe1)\
**Post date:** [March 13, 2024, 9:02pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/5 "2024-03-13T21:02:53Z")

</div>

I wonder if there’s something going on where the client is joining faster than the server and when the server joins it overrides this leaving behind the old client’s character forcing them to create and posses another.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [March 13, 2024, 9:36pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/6 "2024-03-13T21:36:45Z")

</div>

How are you handling spawning in the GM for the new map?

---

<div class="post-metadata">

**Author:** ![Bradjoe1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bradjoe1](https://forums.unrealengine.com/u/Bradjoe1)\
**Post date:** [March 13, 2024, 11:41pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/7 "2024-03-13T23:41:55Z")

</div>

heres how i spawn the players, its in the controller

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/f/e7f8d4e4b1cf5cc56e11cd605412f655e15912e7.png)  
and this is on the game mode (a separate gm from the lobby one)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/4/674f0f1c99974d1c8fa21268915c9ca8f3513d58.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [March 14, 2024, 12:28am UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/8 "2024-03-14T00:28:22Z")

</div>

The GM by default spawns and possesses a pawn immediately on connection. You have to overwrite this behavior, or allow it to happen then loop through and destroy the default and spawn a custom.

See the following thread.

> [@Replication or Loading Problem?](https://forums.unrealengine.com/t/replication-or-loading-problem/1701379/16):
>
> This isn’t telling the GM that the player has loaded their world (map). It’s just counting connections. When we connect to a server it creates a controller. The GM then spawns the pawn assigned in the settings then the possesses it with the control. The pawn is then replicated. At the same time we are getting world information and starting to load the map on our end. Reality here is the pawn will load and start falling before the map is ever ready. This isn’t an issue on simple content example …

---

<div class="post-metadata">

**Author:** ![Bradjoe1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bradjoe1](https://forums.unrealengine.com/u/Bradjoe1)\
**Post date:** [March 14, 2024, 3:10pm UTC](https://forums.unrealengine.com/t/why-does-an-extra-player-character-spawn-in-multiplayer/1749730/9 "2024-03-14T15:10:52Z")

</div>

What would be the best way to do this in my case?  
I have already set the default pawn class in my game mode to (none)  
It also doesn’t explain why it works when the server is the last to ready up. I even created a different system to test this. A force start button on a widget that when pressed by the server starts the game - everything loads normally and correctly.
