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!

E_Team enumeration
DT_TeamData data table
GetTeamIndex and GetTeamName helper functions

Last updated