GetPlayerScore

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 GetPlayerScore (int player, int type) (development version 3.1-alpha and above only)

Usage

Returns the score of the player indicated by the player parameter. The type can be one of the following:

  • SCORE_FRAGS = 0

How many frags this player has.

  • SCORE_POINTS = 1

How many points this player has.

  • SCORE_WINS = 2

How many wins this player has.

  • SCORE_DEATHS = 3

How many times this player died.

  • SCORE_KILLS = 4

The number of monsters this player has killed.

  • SCORE_ITEMS = 5

The number of items this player has picked up.

  • SCORE_SECRETS = 6

The number of secrets this player has found.