Skip to main content

Enemy Drops

Setup

Character Blueprint: BP_Zombie Components:
  • SkeletalMesh
  • HealthComponent
  • LootComponent
LootComponent config:
  • Loot Table: LT_ZombieLoot
  • Single Use: true
  • Auto Detect Level: true
  • Level Property Name: "CharacterLevel" (or your own)
Loot Table: LT_ZombieLoot Entries:
  • [0] Rotten Flesh
    • Item Data: DA_RottenFlesh
    • Drop Weight: 80
    • Min: 1 / Max: 3
  • [1] Bone
    • Item Data: DA_Bone
    • Drop Weight: 50
    • Min: 1 / Max: 2
  • [2] Iron Sword
    • Item Data: DA_IronSword
    • Drop Weight: 5
    • Quantity: 1
Max Items To Spawn: 2

On Death (Blueprint Pattern)

You can also choose to add items directly to a player’s inventory (for auto-loot) instead of spawning world items.

On Death (C++ Example)