IsPlayerDead
Jump to navigation
Jump to search
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.