IsPlayerDowned

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 09:54, 15 August 2026 by QCherry (talk | contribs) (Complete Lua function catalog)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.