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

findIdleWorker

findIdleWorker(world, findIdleWorkerOptions?): Entity | null

The idle worker nearest from on the ground that where passes, or null: what an order’s default chooseWorker picks, as Clash of Clans sends the next free builder.

Parameter Type
world World
findIdleWorkerOptions FindIdleWorkerOptions

Entity | null