Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

Player

Identity tag for a player entity. Attaches the Rust PlayerOwned marker via __native in awake and removes it in onDestroy. No public state, no update loop, no visuals.

entity(id).component.add("UserIdentity")
entity(id).component.has("UserIdentity")  -- true

Future rules (not yet enforced):

  • Non-serialising. Scene and world saves omit this component. Players are attached at runtime per peer, not inherited from the save file.
  • Non-removable. Once an entity is a player, removing this component is a no-op. A player stays a player for its lifetime outside an explicit identity swap.

Visuals, cameras, input, and movement live in separate components (e.g. PlayerController, PlayerTemplate bundle content) so adding or removing them never affects identity.