Skip to content

Commit bb279a2

Browse files
authored
Update API for 1.0.294 (#1210)
Teams.SetMode, Teams.GetMode, enum TeamMode
1 parent 672ee6b commit bb279a2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/api/enums.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,14 @@ tags:
356356
| `TaskStatus.CANCELED` | `6` | The task was canceled, either by a call to `Task.Cancel()` or because its script was destroyed. |
357357
| `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. |
358358

359+
## TeamMode
360+
361+
| Enum Name | Value | Description |
362+
| --------- | ----------- | ----------- |
363+
| `TeamMode.FREE_FOR_ALL` | `0` | Players are hostile to all other players. |
364+
| `TeamMode.TEAM_VERSUS` | `1` | Players are assigned to teams that are hostile to each other. |
365+
| `TeamMode.FRIENDLY` | `2` | Players are friendly to all other players. |
366+
359367
## TextJustify
360368

361369
| Enum Name | Value | Description |

src/api/teams.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The Teams namespace contains a set of class functions for dealing with teams and
1616
| -------------- | ----------- | ----------- | ---- |
1717
| `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 |
1818
| `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 |
19+
| `Teams.SetTeamMode(TeamMode team_mode)` | `None` | Set the current team mode. | Server-Only |
20+
| `Teams.GetTeamMode()` | [`TeamMode`](enums.md#teammode) | Get the current team mode. | None |
1921

2022
## Examples
2123

0 commit comments

Comments
 (0)