Create a team||doc135775

September 20, 2022

Format

 Game.CreateTeam(id) 
  • The class to which the function belongs:Game

Description

Create a team and specify a unique team ID. If no team ID is specified, a unique team ID will be automatically assigned.


Precautions

  • Can't use an existing team id, otherwise unpredictable things will happen

Value Returned

type Description
Team Team instance


Parameters

Variable name type Description
id int team id


Code Samples

Create a team

local team = Game.CreateTeam()