Drops items from an inventory into the game world. Reads world scenes directly from ItemDefinition — no reflection bridge needed.
Source: addons/item_vault/drops/inventory_drops.gd
Syntax
class InventoryDrop extends NodeMembers
| Name | Kind | Summary |
|---|---|---|
item_dropped | Signal | |
drop_all | Property | When true, calling drop will place all items in the inventory into the world. |
drop_count | Property | How many items to drop when drop_all is false. |
inventory | Property | The inventory node (must implement method_get_contents / method_remove). |
scene_spawner | Property | SceneSpawner2D/SceneSpawner3D (or compatible) to place scenes into the game world. |
access | Property | Settings defining what methods to call on the inventory for access/removal. |
rng | Property | |
drop | Method | |
select_random_items | Method | |
remove_items_from_inventory | Method |