IsPlayerDead: Difference between revisions
Jump to navigation
Jump to search
Automatyczna aktualizacja dokumentacji funkcji |
Complete Lua function catalog |
||
| Line 29: | Line 29: | ||
* Available only in server-side resource scripts. | * Available only in server-side resource scripts. | ||
[[Category:Lua Functions]] | |||
[[Category:Server Functions]] | [[Category:Server Functions]] | ||
[[Category:Player Functions]] | [[Category:Player Functions]] | ||
[[Category:Life State Functions]] | [[Category:Life State Functions]] | ||
Latest revision as of 09:54, 15 August 2026
isPlayerDead
Checks whether a player is currently in the authoritative dead state.
Syntax
bool isPlayerDead(int playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
Returns
Returns true when the player is dead; otherwise returns false.
Examples
Check for the dead state:
if isPlayerDead(playerId) then
outputDebugString("Player is dead")
end
Notes
- Available only in server-side resource scripts.