SetPlayerLivesLeft

From Zandronum Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

bool SetPlayerLivesLeft (int player, int amount)

Usage

Parameters

  • player: the player to set the lives for.
  • amount: the amount of lives the player has left after they die. 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.

Return value

Returns true for success, false for failure (e.g. if the player does not exist).

Examples

This article lists no examples, please add one.

See also