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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
controller |
Entity |
trait? |
PredictedTrait<any> | Trait | CoreTrait<any> |
Returns
Section titled “Returns”Entity[]