What it does
inventory.save acts on inventory: it saves. It takes slot. slot is optional.
Signature
inventory.save(slot?)Arguments
slotoptional
Example · generated
function start() { inventory.save(0);}inventory.save is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.