This document is about: QUANTUM 2
SWITCH TO

Teams

Overview

The TeamsSystem provides a way to group selected players and identify them.

Frame.Teams

To create, remove and otherwise modify the teams at runtime, the Frame provides the Frame.Teams API. This is the general access point for the global management of teams. The API includes the following methods:

  • GetTeam()
  • GetTeamID()
  • GetEmptyTeam()
  • GetRandomTeam()
  • HasTeam()
  • AddTeams()
  • AddTeam()
  • RemoveTeam()

Team

A team is represented by a special entity with a Team component. The Team component holds a reference to all its team members. Every entity added as a member to a team will be given a TeamMember component which contains the TeamID property.

The Team component is the specific access point for each team. It offers the following API to access and modify the team data:

  • ContainsEntity()
  • AddEntity()
  • RemoveEntity()
Back to top