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

orders

const orders: PluginFactory<[OrdersOptions], PluginMade<readonly [SystemDefinition<"rules", false, Server, "answerGives">, SystemDefinition<"rules", false, Server, "runOrders">, SystemDefinition<"rules", false, Server, "noteRoutines">, SystemDefinition<"input", false, Both, "walkControlledWorkers">], Readonly<Record<never, never>>, Readonly<Record<never, never>>, never, { give: CommandDeclaration<{ order: OneOfCommandField<string>; station: EntityCommandField & object; }, OrderRefusal, undefined, false, false, false, false>; }, Readonly<Record<never, never>>, Record<never, never>>>

Orders a player’s command gives a worker, an NPC or a player’s character: it walks to the station named, works it a stage at a time, and an NPC goes back to its routine. As Clash of Clans sends a free builder, RimWorld a pawn on a job and Diablo a click to interact.