IsPlayerDowned: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
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

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.