restoreInventory
restoreInventory(
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 is dropped, with a warning in development, and the rest loads.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
saved |
SavedInventory |
Returns
Section titled “Returns”void