What it does
inventory.removeInstance removes Instance on an inventory object. It takes id and qty. qty is optional.
Signature
inventory.removeInstance(id, qty?)Arguments
idqtyoptional
Example · generated
function start() { inventory.removeInstance('main');}inventory.removeInstance 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.