ChangeTeamScore: Difference between revisions
DrinkyBird (talk | contribs) (Created page with "{{ACSWarning}} int '''ChangeTeamScore''' (int ''team'', int ''type'', int ''value''[, bool ''announce'']) {{Devfeature|3.2|alpha}} == 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 ma...") Tag: Source edit |
DrinkyBird (talk | contribs) Tag: Source edit |
||
Line 1: | Line 1: | ||
{{ACSWarning}} | {{ACSWarning}} | ||
{{DevfeatureWarning|version=3.2|type=an [[ACS]] function}} | |||
int '''ChangeTeamScore''' (int ''team'', int ''type'', int ''value''[, bool ''announce'']) {{Devfeature|3.2|alpha}} | int '''ChangeTeamScore''' (int ''team'', int ''type'', int ''value''[, bool ''announce'']) {{Devfeature|3.2|alpha}} |
Latest revision as of 22:35, 2 January 2023
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. |