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