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

CargoContainerOptions

What defineCargoContainer takes.

Property Type Default value Description
capacity? number as many as one layer of its floor holds, so a full container looks full How many goods one container draws; the next good opens another container above it. It refuses nothing, which a carrier’s capacity does.
floor? number 0 Metres up the container’s model, from its lowest point and before scale, that its goods stand on: its inner floor.
interior? CargoContainerInterior its model's footprint at 85%, inside its walls Where its goods sit inside it, in its model’s metres before scale, for a crate with handles, thick walls or an opening off its centre. A good wider or deeper than it throws in development.
model string undefined The registered model the goods ride in, drawn once per container, such as an open crate or a basket.
scale? number 1 The container’s size as a multiple of its model’s, its goods’ with it.