Skip to content

Commit

Permalink
Update API for 1.0.294 (#1210)
Browse files Browse the repository at this point in the history
Teams.SetMode, Teams.GetMode, enum TeamMode
  • Loading branch information
aloke-core committed Jun 21, 2023
1 parent 672ee6b commit bb279a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 2 additions & 0 deletions src/api/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bb279a2

Please sign in to comment.