Some items can be used from the inventory in order to unlock things in the scenery or to solve puzzles.

Object Data

In order for an object to be used from the inventory in a way that interacts with the scenery. the “InventoryAction : Use” needs to be selected. The Flag “Use On Interactive” also needs to be raised.

Untitled

Scene Interactive Object

To create an scenery object with which an item could interact, you can start by adding to the scene the prefab InteractionWithItemUse, located in HorrorEngine/Prefabs.

Untitled

The object has a component called InteractiveWithItemUse where you can setup how the interaction will work.

First, you need to assign the item that’s going to be used with this interactive on the UsableItems property. More than one item can be assigned with different priorities. If the player has many of this items in their inventory the one with higher priority will be used.

The following additional properties are available:

Callbacks