Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

MatchTeamsProps

A match of teams: each side with its own score.

Property Type Default value Description
freeForAll? false undefined -
isTeamAlly? (world, first, second) => boolean two sides are allies only when they are one Whether two of its sides fight on one side, as teams() takes it.
maxPlayers? undefined undefined -
teams readonly [MatchTeamEntry, MatchTeamEntry] undefined Its sides, each a team or a team with its slots. A queued match names teams of its own, which teams() does not list; a queue-less match names teams teams() lists, which teams() balances.
teamSize? number 1 in a queued match, no cap in a queue-less one The slots of each side that names none.