> For the complete documentation index, see [llms.txt](https://docs.otherside.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otherside.xyz/odk-docs/odk-templates/combat-template/teams.md).

# Teams

## Feature Overview

The Meebit template comes with an example implementation of teams. Players can join different teams to shoot players on different teams.

## Technical Overview

A player's teams is stored on a morpheus actor component: `BPMC_TeamComponent`. This component has a client auth replicated property `Team` that handles replicated of state to other clients.\
\
Teams are defined in the `E_Team` enumeration. Data regarding teams can be configured in `DT_TeamData` which uses the `S_TeamData` structure. This strucure allows you to configure a display name shown to players and a color for a given team.

## Tutorials:

### Adding a Team

Adding a team is easy! Simply add a new enumeration value to `E_Team` betweem `NONE` and `INVALID` values. Then configure a new data table entry in `DT_TeamData`. Lastly, you will need to update some simple helper functions so that blueprint logic knows how to access/use your new team. Inside `BPFL_TeamHelpers` you will to update `GetTeamIndex` and `GetTeamName`, adding values. Once you have added your new team!

<figure><img src="/files/w1QldFxQFahlmMHL9kp3" alt=""><figcaption><p><code>E_Team</code> enumeration</p></figcaption></figure>

<figure><img src="/files/517lFXumItDVgUsYP55S" alt=""><figcaption><p><code>DT_TeamData</code> data table</p></figcaption></figure>

<figure><img src="/files/lCXllnWrO8K0Gh3cVBaT" alt=""><figcaption><p><code>GetTeamIndex</code> and <code>GetTeamName</code> helper functions</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.otherside.xyz/odk-docs/odk-templates/combat-template/teams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
