respondToTeamChanges
respondToTeamChanges(
step):void
Acts on each TeamChangedEvent since this ran last, as
characters.systems.teamChange runs it after the reap and before the
respawn. A player’s own switch, or a balance, that finds the player’s
character standing does what characters()’s teamChange says. A
character already down is left to its respawn, which picks the player’s
new side, so it dies once. One a hit took to zero before the reap dies
of that hit, credited. A game’s setTeam leaves the character where it
stands. A player who waited for a team with no character gets one on
the player’s team’s points, unless the game spawns its own.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
step |
AuthoritativeStep |
Returns
Section titled “Returns”void