GetPlayerLivesLeft

From Zandronum Wiki
Revision as of 16:34, 21 August 2016 by DrinkyBird (talk | contribs)
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.
This article or section is a stub. You can help the Zandronum wiki by adding to it.

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.