# \[Basic guide\] How to select a Player Start in multiplayer

**URL:** <https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 27, 2017, 4:42pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270 "2017-06-27T16:42:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGreatCabbage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheGreatCabbage](https://forums.unrealengine.com/u/TheGreatCabbage)\
**Post date:** [June 27, 2017, 4:42pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/1 "2017-06-27T16:42:11Z")

</div>

I’m inexperienced with UE4, but I wanted to help any other newbies by presenting a basic solution to this problem which took me a while to solve.  
So, you want a simple multiplayer game, but the players seem to be spawning at random Player Starts. This means that half the time some of your players are not spawning! Here’s how to fix it:

Open your game mode. Hover your cursor over the plus sign next to ‘Functions’ on the left, select ‘Override’ and then click ‘Choose Player Start’.  
Now, you can add logic to select an unused Player Start. You can create an array of actors and set it to the Player Starts array when BeginPlay is called in the Event Graph, like so:

 ![Screenshot (11).png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/6/16435b38d5bb7fd59197943294176bdfdb8a33d5.png)

Then, you can go back to your ChoosePlayerStart function and get the first item, setting it as the currently chosen Player Start as an actor variable and removing it from the array, so that it won’t be chosen again.

 ![Screenshot (8).png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/b/cb34888c8a53f58b36662dda88a3ca51e8e87ad7.png)

Of course, it would be easy to use a random number for the index when getting a Player Start from the array:

 ![Screenshot (10).png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/0/806d8900dea97318ae275ba9e6a9df5410602677.png)

Now that you have the basic logic for a working system, you can improve upon it and adjust it to your needs. I hope this helps somebody 🙂  
Edit: this works fine when testing with a dedicated server. However, switching to a listen server seems to cause an issue that I haven’t managed to fix.

In C++, you can override the ChoosePlayerStart function with this:

_Header_  
virtual AActor\* ChoosePlayerStart\_Implementation(AController\* Player) override;

And then define the function so that it returns an AActor\* in the .cpp file.

---

<div class="post-metadata">

**Author:** ![Grimbleton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grimbleton](https://forums.unrealengine.com/u/Grimbleton)\
**Post date:** [July 1, 2017, 5:33pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/2 "2017-07-01T17:33:22Z")

</div>

Thanks for this! I’m fairly experienced with blueprint but somehow never thought of doing this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5c936d101](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5c936d101](https://forums.unrealengine.com/u/anonymous_user_5c936d101)\
**Post date:** [July 7, 2017, 2:40am UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/3 "2017-07-07T02:40:35Z")

</div>

OMG This is so helpful! Thx for sharing!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_04f32a061](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_04f32a061](https://forums.unrealengine.com/u/anonymous_user_04f32a061)\
**Post date:** [April 15, 2018, 12:50pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/4 "2018-04-15T12:50:41Z")

</div>

Really nice, thank you, Cabbage.

Just a hint for anybody who is interested: It seems that BeginPlay is not guaranteed to run before ChoosePlayerStart, is it? (I tested with UE 4.18.) So maybe you have to set the variable PlayerStarts within ChoosePlayerStart and ensure the assignment is only done once by an additional bool variable.

---

<div class="post-metadata">

**Author:** ![mcleary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mcleary/32/924204_2.png) [@mcleary](https://forums.unrealengine.com/u/mcleary)\
**Post date:** [October 4, 2020, 8:22pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/6 "2020-10-04T20:22:19Z")

</div>

> [@anonymous\_user\_04f32a061](#):
>
> Really nice, thank you, Cabbage.
> 
> Just a hint for anybody who is interested: It seems that BeginPlay is not guaranteed to run before ChoosePlayerStart, is it? (I tested with UE 4.18.) So maybe you have to set the variable PlayerStarts within ChoosePlayerStart and ensure the assignment is only done once by an additional bool variable.

That is true. I am trying to run a dedicated server and Choose Player Start gets called before BeginPlay

---

<div class="post-metadata">

**Author:** ![Odahl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Odahl](https://forums.unrealengine.com/u/Odahl)\
**Post date:** [July 26, 2021, 4:22am UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/7 "2021-07-26T04:22:30Z")

</div>

![PlayerStart](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/4/b45e3bbc4b923fda3618da3ae4096f66b528358c.png)  
Thank you for this, just the solution I was looking for. I made some slight tweaks just to keep all the code in the same area to control when it was run, I think will solve the issues described by phisigma and mcleary.  
I just added a branch to check if the “Get all player starts” part of the code had been run before. This was to make sure that the array wasn’t refilled with the previously deleted player start.

Hope that this helps someone and that I don’t break any forum rules by replying to a 4 year old thread!

---

<div class="post-metadata">

**Author:** ![matthewdadoun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matthewdadoun](https://forums.unrealengine.com/u/matthewdadoun)\
**Post date:** [June 5, 2022, 10:13pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/8 "2022-06-05T22:13:49Z")

</div>

For anyone that’s using a listen server, you have to Set the Player Starts in the Construction Script instead of Begin Play, because the server will pick a Player Start before BeginPlay is called due to the server being added before the clients. Hope this helps 😃

---

<div class="post-metadata">

**Author:** ![Voclost](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Voclost](https://forums.unrealengine.com/u/Voclost)\
**Post date:** [May 27, 2023, 10:11pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/9 "2023-05-27T22:11:30Z")

</div>

Thank you all a lot for this 🙂  
Saved me

---

<div class="post-metadata">

**Author:** ![PRESSURE2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRESSURE2000](https://forums.unrealengine.com/u/PRESSURE2000)\
**Post date:** [June 30, 2023, 4:46pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/10 "2023-06-30T16:46:39Z")

</div>

the problem Im having is on a dedicated server, when the map restarts, pawns get placed on any player starts, how can we make it so it places it on the correct team if its set as an integer in the player start BP?

---

<div class="post-metadata">

**Author:** ![PRESSURE2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRESSURE2000](https://forums.unrealengine.com/u/PRESSURE2000)\
**Post date:** [June 30, 2023, 5:58pm UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/11 "2023-06-30T17:58:45Z")

</div>

what if I have 3 teams , will the code be the same? Or do I need to tell it what team is which?

---

<div class="post-metadata">

**Author:** ![XIAO\_DEV1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XIAO\_DEV1](https://forums.unrealengine.com/u/XIAO_DEV1)\
**Post date:** [April 3, 2025, 6:01am UTC](https://forums.unrealengine.com/t/basic-guide-how-to-select-a-player-start-in-multiplayer/95270/12 "2025-04-03T06:01:53Z")

</div>

Same with the listen server. Choose Player Start is called before Begin Play.
