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

restoreInventory

restoreInventory(writer, entity, saved): void

Lays a save’s bag on the entity, a bag of as many slots as it held. A stack of an item the game no longer registers throws in development and is set aside in a published game, as bagSave keeps it.

Parameter Type
writer EntityAuthority
entity Entity
saved SavedInventory

void