Skip to main content

Loot Tables

Loot tables are used to provide items to Inventories, whether it's the players, a trader or a blueprint.

Creation

To create a new loot table, Right Click in the Content Drawer -> Miscellaneous -> Data Table.

loot-table-creation.webp

Select the LootTableRow data structure.

loot-table-row.webp

You can now populate all the items the Loot Table needs to use.

loot-table-empty.webp

LootTableRow Properties

Variable NameTypeDescription
ItemsToGrantTArray<FItemWithQuantity>The items to grant if this row is given to the inventory
ItemCollectionsToGrantTArray<TObjectPtr<UItemCollection>>Item collections to grant
SubTablesToRollTArray<FLootTableRoll>Subloot tables that this loot table will roll
ChancefloatThe chance this row will actually be given if selected

FItemWithQuantity Properties

Variable NameType
ItemTSoftClassPtr<UNarrativeItem>
Quantityint32

UItemCollection Properties

Variable NameType
ItemsTArray<FItemWithQuantity>

FLootTableRoll Properties

Variable NameType
TableToRollTObjectPtr<UDataTable>
NumRollsint32
Chancefloat