SetPlayerLivesLeft

From ZDoom Wiki
Revision as of 23:13, 8 January 2017 by Tiger (talk | contribs) (Imported article 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 SetPlayerLivesLeft (int player, int amount)

  • player: the player to set the lives for. Setting player to PlayerNumber() will refer to the activator of the script.
  • amount: amount of lives left to set.

Returns 1 for success, 0 for failure (e.g. if the player does not exist). amount is the amount of lives the player has left after he dies. Lives are only reduced on respawning; to give a player 3 lives, an amount of 2 should be used. An amount of 0 indicates last life.