CyberM.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

CyberM.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 6735).

CyberM.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 6733).

CyberM.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 6734).

CyberM.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 6730).

CyberM.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 6731).

isDead

GAME

CyberM.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 6732).

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