Spawn World Item
Drop an item at a specific location: Blueprint:Drop Item (from slot)
Drop an item from a specific slot: Blueprint:- Removes the item from the inventory
- Spawns a WorldItemActor
- Updates the inventory
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Drop an item at a specific location:
[InventoryComponent] → SpawnWorldItem
Item Instance: [Item to drop]
Location: [World location]
Return: Spawned WorldItemActor
FVector DropLocation = PlayerCharacter->GetActorLocation() +
PlayerCharacter->GetActorForwardVector() * 100.0f;
AWorldItemActor* DroppedItem = InventoryComponent->SpawnWorldItem(
ItemInstance,
DropLocation
);
[InventoryComponent] → DropItem
Index: 5
Quantity: 1
Drop Location: [World position]
InventoryComponent->DropItem(5, 1, DropLocation);