Skip to main content

Overview

You can restrict which items can be placed in specific containers or slots using Gameplay Tags.

Use Cases

  • Weapon-only slots: Only allow weapons
  • Potion belt: Only allow consumables
  • Quiver: Only allow arrows
  • Reagent bag: Only allow crafting materials
  • Armor stands: Only allow armor pieces

Per-Container Restrictions

Use CanItemGoInContainer() to validate items: C++:
Override in Blueprint to implement custom logic:

Per-Slot Restrictions

Configure restrictions for individual slots using FContainerSlotSettings:
Example: Weapon-Only Slot Blueprint (in InventoryComponent):
Example: Whitelist Specific Items
Only those three specific items can go in this slot. Example: Blacklist Quest Items
Quest items cannot be placed here.

Validation

Before adding an item: