GetPlayerLivesLeft

From Zandronum Wiki
Revision as of 15:33, 21 August 2016 by DrinkyBird (talk | contribs) (Created page with "{{Stub}} int '''GetPlayerLivesLeft''' (int ''player'') *''player'': player to query lives left of. Returns the amount the player has left. Lives are only reduced on respawn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.