GetPlayerLivesLeft: Difference between revisions
DrinkyBird (talk | contribs) No edit summary |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 1: | Line 1: | ||
{{ACSWarning}} | {{ACSWarning}} | ||
int '''GetPlayerLivesLeft''' (int ''player'') | |||
== Usage == | |||
=== Parameters === | |||
*''player'': player to query the lives of. | |||
=== Return value === | |||
Returns the number of lives the player has left. Lives are only reduced upon respawning; a value of 2 indicates the player has 3 lives, and a value of 0 indicates the player is on their last life. | |||
To check whether a player is dead or not, use [[PlayerIsSpectator]]. | |||
== Examples == | |||
{{noexamples}} | |||
[[Category: ACS Functions]] | [[Category: ACS Functions]] |
Revision as of 17:27, 2 July 2022
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
int GetPlayerLivesLeft (int player)
Usage
Parameters
- player: player to query the lives of.
Return value
Returns the number of lives the player has left. Lives are only reduced upon respawning; a value of 2 indicates the player has 3 lives, and a value of 0 indicates the player is on their last life.
To check whether a player is dead or not, use PlayerIsSpectator.
Examples
This article lists no examples, please add one. |