Skip to content
ct

Class

InventoryDrop

Generated GDScript class reference for ItemVault.InventoryDrop.

Status
Draft
Version
v1.0
Updated
Development docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Source: addons/item_vault/drops/inventory_drops.gd

Syntax

class InventoryDrop extends Node

Members

NameKindSummary
item_droppedEventDrops items from an inventory into the game world. Reads world scenes directly from ItemDefinition — no reflection bridge needed.
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
resultsProperty
itemsProperty
instancesProperty
spawned_itemsProperty
payloadProperty
spawnedProperty
select_random_itemsMethod
remainingProperty
selectedProperty
idxProperty
remove_items_from_inventoryMethod
removedProperty