IsPlayerDowned
isPlayerDowned
Checks whether a player is currently in the authoritative downed state.
Syntax
bool isPlayerDowned(int playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
Returns
Returns true when the player is downed; otherwise returns false.
Examples
Check for the downed state:
if isPlayerDowned(playerId) then
outputDebugString("Player is downed")
end
Notes
- Available only in server-side resource scripts.