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

returnCargo

returnCargo(writer, holder): CargoResult

Moves everything holder holds into the world’s recovery store, as a leave, a disconnect, a respawn and a destroy do, and answers it. It takes an entity’s writer, as a hook has: the goods reach recovery at the next tick, and the custody save counts them there meanwhile. Never inside transact, which cannot put them back.

Parameter Type
writer EntityAuthority
holder Entity

CargoResult