GetPlayerLivesLeft

From ZDoom Wiki
Revision as of 22:42, 8 January 2017 by Tiger (talk | contribs) (Imported article 'GetPlayerLivesLeft' from the Zandronum wiki.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
SkulltagIcon.png Warning: This feature is Skulltag specific, and is not compatible with ZDoom!
To see all of Skulltag's specific features, see Skulltag features.


int GetPlayerLivesLeft (int player)

  • player: player to query lives left of.

Returns the amount the player has left. Lives are only reduced on respawning, an amount of 2 here indicates the player has 3 lives. An amount of 0 indicates last life.

To check whether a player is dead or not, PlayerIsSpectator should be used.