Team Class

Class For Team Interface

Return To Previous Page


Class:apiName(parameters) Return Description
Team:getNumTeam() ErrorCode.OK num:number The current number of teams
Team:getTeamPlayerNum(teamid:number, alive:number) ErrorCode.OK num:number Get the number of players in the specified team
Team:getTeamPlayers(teamid:number, alive:number) ErrorCode.OK num:number, array:table(member uin array) Get the specified team player
Team:randomTeamPlayer(teamid:number, alive:number) ErrorCode.OK uin:number Random player's uin
Team:getTeamCreatures(teamid:number) ErrorCode.OK array:table(objid array) Get the specified team creature (similar to getTeamPlayers)
Team:setTeamScore(teamid:number, score:number) ErrorCode.OK Set team score
Team:getTeamScore(teamid:number) ErrorCode.OK score:number To obtain team scores
Team:addTeamScore(teamid:number, score:number) ErrorCode.OK Increase the team score
Team:setTeamResults(teamid:number, result:number) ErrorCode.OK Set team wins and losses
Team:getTeamResults(teamid:number) ErrorCode.OK team result:number To obtain the current team's victory and defeat
Team:setTeamDieTimes(teamid:number, times:number) ErrorCode.OK The number of team deaths
Team:getTeamDieTimes(teamid:number) ErrorCode.OK times:number Get the total number of deaths of the team
Team:addTeamDieTimes(teamid:number) ErrorCode.OK Increase the total number of deaths in the team
Team:changePlayerTeam(players:number, teamid:number) ErrorCode.OK Change the player team