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