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

findCargoDestinations

findCargoDestinations(world, carrier): Entity[]

The stations that would take a good carrier holds now, nearest edge first: each that moves goods into a store, lets the carrier in by its targets, its scope and its match, accepts one of the carrier’s kinds and has room for it. A read, not a reservation: another carrier may fill one first, and the game’s own checkCargoTransfer still decides. What the guide lights, and what a game’s own marker reads. Not for a step: it makes an array a call.

Parameter Type
world World
carrier Entity

Entity[]