# Community Tutorial: Lyra: Team-based Spawn Points

**URL:** <https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-engine\
**Created:** [September 29, 2023, 3:49am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160 "2023-09-29T03:49:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astaraa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astaraa/32/1194560_2.png) [@Astaraa](https://forums.unrealengine.com/u/Astaraa)\
**Post date:** [September 29, 2023, 3:49am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/1 "2023-09-29T03:49:37Z")

</div>

Want to ensure spawn players in their own base, or otherwise assign a team to spawn points?  
  
[https://dev.epicgames.com/community/learning/tutorials/XjBe/unreal-engine-lyra-team-based-spawn-points](https://dev.epicgames.com/community/learning/tutorials/XjBe/unreal-engine-lyra-team-based-spawn-points)

---

<div class="post-metadata">

**Author:** ![Basil\_Kittler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Basil\_Kittler](https://forums.unrealengine.com/u/Basil_Kittler)\
**Post date:** [December 3, 2023, 5:46pm UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/2 "2023-12-03T17:46:20Z")

</div>

Really nice addition to the spawning.  
I was still having bots from enemy teams spawning in the wrong zone. (Not players only bots)  
The fix I worked out was clearing the “Team Starts” array at the start of the function.

---

<div class="post-metadata">

**Author:** ![Astaraa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astaraa/32/1194560_2.png) [@Astaraa](https://forums.unrealengine.com/u/Astaraa)\
**Post date:** [December 7, 2023, 9:06pm UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/3 "2023-12-07T21:06:58Z")

</div>

Ah did you make _TeamStarts_ a regular variable instead a local one?  
A local variable should be empty each time.  
A regular one would keep growing.

---

<div class="post-metadata">

**Author:** ![greatmazingerz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greatmazingerz](https://forums.unrealengine.com/u/greatmazingerz)\
**Post date:** [November 16, 2024, 2:12pm UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/4 "2024-11-16T14:12:47Z")

</div>

I m sorry may sound dump

but where is this TeamStart and **FindPlayerStart**?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/1/cb1cc9628365c2c18c84a20a231fdfaab5b06de3.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/2/5e2e9cc0c9adc146fe5b8f92d39117c4ea677af0.png)

Big thanks if you can help

---

<div class="post-metadata">

**Author:** ![Astaraa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astaraa/32/1194560_2.png) [@Astaraa](https://forums.unrealengine.com/u/Astaraa)\
**Post date:** [November 18, 2024, 6:14am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/5 "2024-11-18T06:14:09Z")

</div>

On the left where you see “Functions” → override or in your case “Substituer”, you’ll see FindPlayerStart.

And TeamStarts is a local variable you add to that.

---

<div class="post-metadata">

**Author:** ![greatmazingerz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greatmazingerz](https://forums.unrealengine.com/u/greatmazingerz)\
**Post date:** [November 18, 2024, 11:23am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/6 "2024-11-18T11:23:06Z")

</div>

Thanks you for taking time to respond

I think i get it for Function part thanks you

For the variable not sure  
i m sorry i m really beginer but can be usefull for other beginer that pass here

should i do that for the function ? wich one i select ? object / class ?  
maybe i m all wrong…  
thanks again

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/7/6f7d1a060d74cb6f472bb76a3cb8f628e51a0233.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/7/e77502dd9c0cdbd1b56c295afb23d2dce70fb536.jpeg)  
for the moment error because i didnt redonne the node with new variable team starts

is that the good LOCAL ?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/0/970c522d39daf114473d678b7cfe089ae5e0ee4c.png)

maybe if found the array

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/a/23a5091d8246812649d6055a234ffe6f37b163cb.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/c/e8c50d93a13607bd3e64471080558a0324dba5af.jpeg)

is that usefull ?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/9/389e4980b0ea9fa699e92d66da042e65199367dd.png)

if it s correct maybe those screen shot would be usefull for total noob like me

next step i didbnt figure out yet

> ```
> Right click FindPlayerStart to get the Parent call node.
> 
> ```
> 
> Now in your LyraPlayerStarts \> Player Start Tag, enter either Red or Blue. The red team will always spawn at a random “Red” and blue at a random “Blue”.
> 
> ```
> Names are set by the team data asset (ex. TeamDA_Red).
> 
> ```

Is that here ?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/c/aacdcfdb2a204f8b202c4a9d96b742ced17fae6e.jpeg)

i modified with TeamDA\_Blue or TeamDA\_Red but bot and player keep spawning random team color and place … (i place at distinct zone)

I keep update

Tanks again

---

<div class="post-metadata">

**Author:** ![Astaraa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astaraa/32/1194560_2.png) [@Astaraa](https://forums.unrealengine.com/u/Astaraa)\
**Post date:** [November 19, 2024, 8:01am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/7 "2024-11-19T08:01:59Z")

</div>

> [@greatmazingerz](#):
>
> i m really beginer

That’s how I learn, by just doing it.

🌲

> [@greatmazingerz](#):
>
> is that the good LOCAL ?
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/0/970c522d39daf114473d678b7cfe089ae5e0ee4c.png)

That should do it. Just make sure it appears under “local variables”. Otherwise it won’t start empty each time.

🌲

> [@greatmazingerz](#):
>
> is that usefull ?
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/9/389e4980b0ea9fa699e92d66da042e65199367dd.png)

We only use the Parent Function at the end, as a fallback in case there are no player starts. Then it runs as default would. We don’t want it otherwise.

🌲

> [@greatmazingerz](#):
>
> Is that here ?
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/c/aacdcfdb2a204f8b202c4a9d96b742ced17fae6e.jpeg)

That needs to be “Red” or “Blue” or whatever the team name is.  
Needs to match this team short name:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/f/24fdd8aab1db7c2587b1285680d564a5c96ddf19.png)

Lemme know how it goes 🧑‍🏭

---

<div class="post-metadata">

**Author:** ![greatmazingerz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greatmazingerz](https://forums.unrealengine.com/u/greatmazingerz)\
**Post date:** [November 20, 2024, 8:26am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/8 "2024-11-20T08:26:29Z")

</div>

Thanks for reply !

effectively i didnt set the good name

So i tried with the short name (that match each TeamDA short name). I was confident … but it didnt work …

like all character spawn often at same place now …

maybe i will retry from a fresh new Lyra project … maybe that messing up with some other change i made other place …

best regards

or could it be this option of the wolrd setting ? game mode override ?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/1/9610483eb4278f730fbffede6a755c597c34164b.jpeg)

EDIT .  
IT WAS that

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/3/f637bf78ab95461b9f3589497b77c0a6444070d0.jpeg)

i put those setting and now IT IS WORKING ! that s fantastic  
i will try to put that in order for noob like me so they can follow all detailed step

thanks again is that fantastic !  
I feel you just made a big chunk of my game lol

I still have one question in case  
i would like to change spawn location after death for some game mode  
is it something possible to do ? could i had a second tag to the spawn so it can be used in certain condition ? should i work with your BP script or somewhere else ?  
maybe so clue here

> [@How would I spawn the player at a specific point when opening a new level?](https://forums.unrealengine.com/t/how-would-i-spawn-the-player-at-a-specific-point-when-opening-a-new-level/423683/2):
>
> The GameMode class has a ChoosePlayerStart function, that you can override in its blueprint/C++ class. I’d say, you keep an integer (“StartIndex” for instance) with the index of the PlayerStart you want to choose, in a GameInstance class. Then, when the player goes through the door, you change the index, from 0 to 1. In the overriden function, you get all actors of class PlayerStart, and return the one at the index you saved in the GameInstance class, and that way, you get different starts de…

---

<div class="post-metadata">

**Author:** ![greatmazingerz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greatmazingerz](https://forums.unrealengine.com/u/greatmazingerz)\
**Post date:** [November 21, 2024, 8:46am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/9 "2024-11-21T08:46:30Z")

</div>

believe it or not . Today i restart the editor and it s no more working … (i stoped everything yesterday after 4 successive test )

---

<div class="post-metadata">

**Author:** ![greatmazingerz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greatmazingerz](https://forums.unrealengine.com/u/greatmazingerz)\
**Post date:** [November 21, 2024, 2:30pm UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/10 "2024-11-21T14:30:03Z")

</div>

OK

i restarted all from scratch… and for the moment … It work !

I made some screen shot to resume where things are. It could help someone

 ![BP player start](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/6/4b62cb9c76c64354a3e11f3a426a6dadfade0e0a.jpeg)  
 ![BP player start2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/6/f16de67c43237641a0b1ed1196793e952fa1c1c7.jpeg)  
 ![BP player start3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/8/5a8052562d8fe400af4c0e9bb7612315820f23be.jpeg)

Best regards

---

<div class="post-metadata">

**Author:** ![Astaraa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astaraa/32/1194560_2.png) [@Astaraa](https://forums.unrealengine.com/u/Astaraa)\
**Post date:** [November 23, 2024, 6:12am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/11 "2024-11-23T06:12:45Z")

</div>

Gamemode Override shouldn’t be necessary, as B\_LyraGameMode is already used by default.  
I believe it’s set in Project Settings → Default GameMode.  
Same result but may want to check.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/a/4fa70da4fef892422223ec9648b42915667cb884.png)

---

<div class="post-metadata">

**Author:** ![greatmazingerz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greatmazingerz](https://forums.unrealengine.com/u/greatmazingerz)\
**Post date:** [December 27, 2024, 4:55am UTC](https://forums.unrealengine.com/t/community-tutorial-lyra-team-based-spawn-points/1316160/12 "2024-12-27T04:55:16Z")

</div>

Yes  
sorry forgot reply  
true
