What it does
inventory.clear acts on inventory: it clears. It takes no arguments.
Signature
inventory.clear()Arguments
It takes none.
Example · generated
function start() { inventory.clear();}inventory.clear 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.