team||doc135326

September 20, 2022

Team

Introduction

Team type, a group or organization composed of multiple players and other physical objects in the game, the team function gives members of the same team many convenient functions, such as team members are immune to damage to each other, and the health bar is displayed in green.


Properties

int id

TeamId

int playerCount

Team members are the number of players

int createTime

Timeframe for team creation


Function

Player getFirstPlayer (  )

Returns the first player to enter the party

table getEntityList (  )

Get all members of the team

void joinEntity (  Entity entity  )

Add entity objects to the team

void leaveEntity (  Entity entity  )

remove a party member from the party

void dismiss (  )

Disband the team