# How to set up teams using blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084>\
**Category:** Blueprint\
**Tags:** spawn, spectator, fps, unreal-engine, question\
**Created:** [January 27, 2017, 12:46am UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084 "2017-01-27T00:46:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d771975](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d771975](https://forums.unrealengine.com/u/anonymous_user_9d771975)\
**Post date:** [January 27, 2017, 12:46am UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/1 "2017-01-27T00:46:05Z")

</div>

Context:  
I have an FPS. I want to have two teams of 5, named attackers and defenders. When a player joins the session, they will join the Spectators and they can choose either of the two teams: attackers or defenders. When they choose a team, they spawn in the respective team spawn point as an FPS character. How do I go about doing all this, at least starting it?

---

<div class="post-metadata">

**Author:** ![Zakku\_Arashi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zakku\_Arashi](https://forums.unrealengine.com/u/Zakku_Arashi)\
**Post date:** [January 27, 2017, 1:19am UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/2 "2017-01-27T01:19:24Z")

</div>

If you’re using AI as well, you can add a “Sense” and instantiate two stimuli, one for each team. Then, you assign the enemy sense so that each side senses the other side as an enemy.

The blueprints don’t have all the team functions like the C++ side of things has. So, instead of using the incomplete function sets, it’s generally recommended to create your own methods for tracking these things.

In multiplayer, with humans, create a wrapper, “PlayerParentActor”, and create multiple subcomponents that deal with gameplay. One of these components should contain a struct variable that tracks which team they are on. This part is for their need to know. Don’t let the game trust the player’s data, in multiplayer-- once your components are made, you can use a more global blueprint that the server or “AuthorityPlayer” will use to do all of the gameplay tasks. Add these new components, that track the player’s data, to the “trusted” blueprint so that the server is the authority on who is on whose team without players being able to get away with manipulating the data on their end. These component instances, one for each player, should be referenced as an array so you can easily add a new instance to the array.

If you’re only having two types of teams, it’s easy to make things called, “Team1”, and, “Team2”, but it’s best to just modularize things.

So, on the “trusted” blueprint, you can create components that have to do with general team information; color, “Attack”/“Defense”, name, array of members, etc. Then, add another set of components that inherit from this team information component and make them more specific to the “Attack” and “Defense” team information, if they differ. If not, then just create an instance for each team, adding them to the array on the “trusted” blueprint. From there, add the instances of the players’ information to the array in the instance of their respected team. Your gameplay blueprint can then automatically track who is on whose team by which instance of the team information they belong to.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d771975](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d771975](https://forums.unrealengine.com/u/anonymous_user_9d771975)\
**Post date:** [January 27, 2017, 1:51am UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/3 "2017-01-27T01:51:05Z")

</div>

What is a wrapper?

---

<div class="post-metadata">

**Author:** ![Zakku\_Arashi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zakku\_Arashi](https://forums.unrealengine.com/u/Zakku_Arashi)\
**Post date:** [January 27, 2017, 2:04am UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/4 "2017-01-27T02:04:40Z")

</div>

It’s basically a “template” of sorts that is setup will general data structures that are non-specific and can be reused for multiple purposes. It’s generally a term used for a primitive, generic structure of variables and simple functions that classes can inherit from in order to have a consistent “wrapper” as a basis for classes that are more specific to your long-term goals.

> **[Primitive wrapper class in Java](https://en.m.wikipedia.org/wiki/Primitive_wrapper_class)**
>
> In object-oriented programming, a wrapper class is a class that encapsulates types, so that those types can be used to create object instances and methods in another class that need those types. So a primitive wrapper class is a wrapper class that encapsulates, hides or wraps data types from the eight primitive data types, so that these can be used to create instantiated objects with methods in another class or in other classes. The primitive wrapper classes are found in the Java API.
> 0 Primitiv...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d771975](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d771975](https://forums.unrealengine.com/u/anonymous_user_9d771975)\
**Post date:** [February 2, 2017, 7:47am UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/5 "2017-02-02T07:47:06Z")

</div>

But what is it in context of using blueprints in Unreal Engine 4?  
And what do you mean by components? Could you be a little bit more specific?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fcad1180](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fcad1180](https://forums.unrealengine.com/u/anonymous_user_fcad1180)\
**Post date:** [February 16, 2017, 2:38pm UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/6 "2017-02-16T14:38:12Z")

</div>

Yes that answer (while appreciated) is presented as if the person asking the question already has knowledge of blueprints and UE4 that is far above novice. And ultimately leaves a person more confused than they were originally.

I think what the OP and probably many others including myself are looking for is a thorough step by step breakdown of implementing teams and scoring systems.

I’m actually quite shocked to discover that this kind of tutorial has not been made available long ago.

---

<div class="post-metadata">

**Author:** ![Zakku\_Arashi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zakku\_Arashi](https://forums.unrealengine.com/u/Zakku_Arashi)\
**Post date:** [February 16, 2017, 5:57pm UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/7 "2017-02-16T17:57:03Z")

</div>

I have given them a breakdown of the logic behind it. If they have further questions, they can reply or do a little research on the given keywords.

If you have a question, please stay your own topic.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d771975](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d771975](https://forums.unrealengine.com/u/anonymous_user_9d771975)\
**Post date:** [February 16, 2017, 11:56pm UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/8 "2017-02-16T23:56:25Z")

</div>

I have successfully solved my problem. Thank you for your great effort in helping me solve it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9d771975](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9d771975](https://forums.unrealengine.com/u/anonymous_user_9d771975)\
**Post date:** [February 17, 2017, 12:00am UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/9 "2017-02-17T00:00:13Z")

</div>

I would wholly appreciate a good video/tutorial of such a breakdown. Zakku’s great knowledge in UE4 and his ability to be such in depth with his answers would be well appreciated in some tutorials.

---

<div class="post-metadata">

**Author:** ![xxTESCHIO81xx1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xxTESCHIO81xx1](https://forums.unrealengine.com/u/xxTESCHIO81xx1)\
**Post date:** [March 29, 2026, 11:42pm UTC](https://forums.unrealengine.com/t/how-to-set-up-teams-using-blueprint/383084/10 "2026-03-29T23:42:04Z")

</div>

guarda questo, puo venirti utile

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/7/07768800cf271eec87eda36cf17465e8c0e756aa.jpeg "Unreal Engine 5.7: Automatic Team Balance System (No Widgets) | IGAME Series #3") ](https://www.youtube.com/watch?v=qzoqpe2Xbic)
