Skip to main content

Players

Description

Player represents an authenticated session. PlayerState is the server-validated snapshot received through playerState.

Attributes

TypeAttributeDescription
PlayeridActive numeric session slot; may be reused after leave.
PlayeraccountIdPersistent verified identity key.
PlayerStatestateFlagsValidated movement/state flags.
PlayerStateposition{ x, y, z } coordinates.
PlayerStateheadingCharacter heading.
PlayerStatehealthCurrent health.
PlayerStatearmorCurrent armor.
PlayerStateweaponCurrent weapon ID.
PlayerStatemodelIdCurrent skin/model ID.

Notes

Use id for active targeting and accountId for persistent server-owned records. Do not retain a numeric ID without checking the current session after reconnect.