Gameplay: Inventory and two-object interactions
An inventory definition describes an item. Giving an item changes a bag. Removing its scene model is a separate instruction. Decide whether the project uses shared or character-specific inventory before writing transfers.
AddInventory()#
Add Inventory
Add copies of an existing inventory item through the runtime's active inventory route.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Item itemId | Choose an inventory definition ID. | Blank |
| Count count | Number of copies or repetitions. Use a whole number. | 1 |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await AddInventory({"itemId": "key", "count": 1})In use. Add one Archive Key after a successful pickup. This is not a command to import a model, and it does not hide the key on the workbench. Use Give Inventory in the room/object inspector when this entry is not listed there.
