What it does
inventory.remove acts on inventory: it removes. It takes id and quantity. quantity is optional.
Signature
inventory.remove(id, quantity?)Arguments
idquantityoptional
Example · generated
function start() { inventory.remove('main');}inventory.remove 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.