Items can be used from the inventory on scene interactives. For example, a key can be used on a door from the inventory.

For this, simply add the UsableOnInteractive User Data in the AssetUserData list of the item.

image.png

To detect when the item is used on an interactive add the HeInteractiveItemUse component to the Actor with the Interactive component and assign the item that will be used in the UsableItems list.

image.png

You can then register to the use event and implement the logic that will occur when the right object is used. This can be done in the Level blueprint for example.

In this example, the door is unlocked and the item is removed from the inventory.

image.png