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

readControlled

readControlled(world, controller, trait?): Entity[]

Every entity controller controls on the tick being stepped, in the order they were spawned, those holding trait alone where one is named: readControlled(world, player, KartTrait). A new list each call: a system that reads it every tick keeps its own.

Parameter Type
world World
controller Entity
trait? PredictedTrait<any> | Trait | CoreTrait<any>

Entity[]