Skip to content
ct

Class

InventoryDrop

Generated GDScript class reference for ItemVault.InventoryDrop.

Status
Current
Version
v1.0
Updated
2026-07-31

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 Node

Members

NameKindSummary
item_droppedSignal
drop_allPropertyWhen true, calling drop will place all items in the inventory into the world.
drop_countPropertyHow many items to drop when drop_all is false.
inventoryPropertyThe inventory node (must implement method_get_contents / method_remove).
scene_spawnerPropertySceneSpawner2D/SceneSpawner3D (or compatible) to place scenes into the game world.
accessPropertySettings defining what methods to call on the inventory for access/removal.
rngProperty
dropMethod
select_random_itemsMethod
remove_items_from_inventoryMethod