What it does
inventory.load brings a inventory object into being: it is how the rest of the script comes to have one. It takes slot. slot is optional.
Signature
inventory.load(slot?)Arguments
slotoptional
Example · generated
function start() { inventory.load(0);}inventory.load 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.