Wiki News Account creation no longer requires administrator approval - edits are still moderated, however.

ChangeTeamScore

From Zandronum Wiki
Jump to navigation Jump to search
Zandronum SkulltagOverlay.png Warning: This feature is Zandronum specific and may not supported by ZDoom and its other child ports!
Documentation may not be accurate, see ACS Functions.

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