Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readLocalCharacter

readLocalCharacter(world): Entity | undefined

The character this side’s player controls: the one under the client’s authority, which her page predicts, a character with its pose before a kart or a drone she controls beside it. On a world with no player, as a harness that spawns her bare has, the first controllable entity where none is under the client’s authority. A room’s own world holds every player and steers none, so it reads none.

Parameter Type
world World

Entity | undefined