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

writeInput

writeInput<Value>(authority, controller, writeInputOptions): void

Writes one field of controller’s input for the next tick, as a page sends a player’s before the tick it names: the controller a room controller or a bot player, which no page sends input for. Every entity it controls on that tick reads it; a field no system wrote for a tick reads at rest, an angle where it last stood. A system’s place in the step’s order never changes when its input lands. Throws in development for a controller a page sends input for, and a deployed room logs it and writes nothing.

Type Parameter
Value extends InputValue
Parameter Type
authority Authority
controller Entity
writeInputOptions WriteInputOptions<Value>

void