Open77.players

Runs inside the game process. Reads and presentation are local; anything that changes shared state has to go through the server.

client runtime6 functionsMarkdown

Open77.players.allHealthStates()

Lists all replicated player health snapshots known to the client.

Requires players.life.read; returns an empty array when unavailable.

Returns

  • array of health snapshots

Registered in ResourceHost.cpp as LuaPlayerHealthAll (line 6872).

Open77.players.allLifeStates()

Lists all replicated canonical player life states known to the client.

Requires players.life.read; returns an empty array when unavailable.

Returns

  • array of life snapshots

Registered in ResourceHost.cpp as LuaPlayerLifeAll (line 6870).

Open77.players.getHealthState([playerId])

Reads one replicated player health snapshot.

Requires players.life.read. Omit playerId for the local player.

Parameters

  • playerIdintegeroptional

Returns

  • table { playerId, revision, health, maxHealth, armor, godMode, lastAttacker, lastDamage, lastAttackKind, lastBodyPart, lastHitDirection }, or nil

Registered in ResourceHost.cpp as LuaPlayerHealthState (line 6871).

Open77.players.getLifeState([playerId])

Reads the canonical replicated life state of one player.

Requires players.life.read. Omit playerId for the local session player.

Parameters

  • playerIdintegeroptional

Returns

  • life snapshot, or nil

Registered in ResourceHost.cpp as LuaPlayerLifeState (line 6867).

Open77.players.getLocalDeathContext()

Reads the local player's replicated death context.

Requires players.life.read. The snapshot includes phase, cause, killer, weapon, position, yaw, impulse, revision and grace duration.

Returns

  • life snapshot, or nil

Registered in ResourceHost.cpp as LuaLocalDeathContext (line 6868).

isDead

GAME

Open77.players.isDead([playerId])

Whether a player is canonically dead or awaiting revive/respawn.

Requires players.life.read. Omit playerId for the local player. Unknown or unavailable states return false.

Parameters

  • playerIdintegeroptional

Returns

  • boolean

Registered in ResourceHost.cpp as LuaPlayerIsDead (line 6869).

For agents and LLMs: this page as Markdown · llms.txt · llms-full.txt