team
Client-side
Server-side
Shared
Element category: Team
The team class represents player teams. Players on the same team can use team features such as teamchat or friendly fire.
A common misconception is that players would be child elements of team elements. This is wrong. Being part of a team is merely a relational connection rather than a change in element hierarchy. To perform logic on all the players of a team you have to use the getPlayersInTeam function.
OOP Methods and Variables
- team:countPlayers(...) Variable: .playerCount
- team:getPlayers(...) Variable: .players
- team:getColor(...)
- team:getFriendlyFire(...) Variable: .friendlyFire
- team:getName(...) Variable: .name
- team:setColor(...)
- team:setFriendlyFire(...) Variable: .friendlyFire
- team:setName(...) Variable: .name
See Also
Team Functions
Team Elements
- team