diff --git a/src/api/enums.md b/src/api/enums.md index f5a9cce81..79912e146 100644 --- a/src/api/enums.md +++ b/src/api/enums.md @@ -356,6 +356,14 @@ tags: | `TaskStatus.CANCELED` | `6` | The task was canceled, either by a call to `Task.Cancel()` or because its script was destroyed. | | `TaskStatus.BLOCKED` | `7` | The task is waiting for an operation to complete before resuming execution. Examples include a call to `CoreObjectReference:WaitForObject()`, `CorePlatform.GetGameInfo()`, etc. | +## TeamMode + +| Enum Name | Value | Description | +| --------- | ----------- | ----------- | +| `TeamMode.FREE_FOR_ALL` | `0` | Players are hostile to all other players. | +| `TeamMode.TEAM_VERSUS` | `1` | Players are assigned to teams that are hostile to each other. | +| `TeamMode.FRIENDLY` | `2` | Players are friendly to all other players. | + ## TextJustify | Enum Name | Value | Description | diff --git a/src/api/teams.md b/src/api/teams.md index 640661b3a..3b930f4c6 100644 --- a/src/api/teams.md +++ b/src/api/teams.md @@ -16,6 +16,8 @@ The Teams namespace contains a set of class functions for dealing with teams and | -------------- | ----------- | ----------- | ---- | | `Teams.AreTeamsEnemies(integer team1, integer team2)` | `boolean` | Returns true if teams are considered enemies under the current TeamMode. If either team is TEAM_NEUTRAL=0, returns false. | None | | `Teams.AreTeamsFriendly(integer team1, integer team2)` | `boolean` | Returns true if teams are considered friendly under the current TeamMode. If either team is TEAM_NEUTRAL=0, returns true. | None | +| `Teams.SetTeamMode(TeamMode team_mode)` | `None` | Set the current team mode. | Server-Only | +| `Teams.GetTeamMode()` | [`TeamMode`](enums.md#teammode) | Get the current team mode. | None | ## Examples