ChangeTeamScore
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
This article documents an ACS function which is only available in development builds of Zandronum 3.2 and newer. |
int ChangeTeamScore (int team, int type, int value[, bool announce]) (development version 3.2-alpha and above only)
Usage
Changes the score of a team.
Parameters
- player: The number of the team whose score to change.
- type: One of:
- SCORE_FRAGS = 0
- How many frags this team has.
- SCORE_POINTS = 1
- How many points this team has.
- SCORE_WINS = 2
- How many wins this team has.
- SCORE_DEATHS = 3
- How many times this team died.
- value: The new value of the score.
- announce: Whether to announce the change in frags, points, or wins. This defaults to true if unspecifiedd.
Return value
Returns 1 if the team's score was successfully changed, 0 on failure.
Examples
This article lists no examples, please add one. |