Player SetTeam: Difference between revisions
DrinkyBird (talk | contribs) (Adjustments for second argument) |
DrinkyBird (talk | contribs) m (formatting) |
||
Line 2: | Line 2: | ||
{{Template:ACSWarning}} | {{Template:ACSWarning}} | ||
int '''Player_SetTeam''' (int ''team'') | int '''Player_SetTeam''' (int ''team'') | ||
int '''Player_SetTeam''' (int ''team'', bool ''nobroadcast'') {{Devfeature|3.1|alpha-210602-1107}} | int '''Player_SetTeam''' (int ''team'', bool ''nobroadcast'') {{Devfeature|3.1|alpha-210602-1107}} | ||
Revision as of 00:28, 6 August 2021
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
int Player_SetTeam (int team)
int Player_SetTeam (int team, bool nobroadcast) (development version 3.1-alpha-210602-1107 and above only)
Usage
Changes the team of the player who activated the special to team. A valid team is anywhere between 0 and sv_maxteams (so 2, 3, 4). The teams are 0 = Blue, 1 = Red, 2 = Green, 3 = Gold. Using the current value of sv_maxteams removes the player from his current team without making him join another.
The nobroadcast argument is optional, and suppresses the "{player} joined the {team}" chat message.
Example
This article lists no examples, please add one. |