What it does
inventory.updateInstance takes id and patch.
Signature
inventory.updateInstance(id, patch)Arguments
idpatch
Example · generated
function start() { inventory.updateInstance('main', 1);}inventory.updateInstance 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.