ChangeTeamScore

From Zandronum Wiki
Revision as of 23:01, 21 August 2022 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

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.

See also