What it does
inventory.get acts on inventory: it reads. It takes id.
Signature
inventory.get(id)Arguments
id
Example · generated
function start() { inventory.get('main');}inventory.get 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.