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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Value extends InputValue |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
controller |
Entity |
writeInputOptions |
WriteInputOptions<Value> |
Returns
Section titled “Returns”void