What it does
inventory.setMaxWeight sets MaxWeight on an inventory object. It takes n.
Signature
inventory.setMaxWeight(n)Arguments
n
Example · generated
function start() { inventory.setMaxWeight(1);}inventory.setMaxWeight 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.