Collectable Item
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
The Collectable Item is an item to gather for overall progress.
Attributes | Description |
---|---|
Name | Enter a unique name to identify and manage the item easily. |
Label | Type the name displayed in-game when the player collects this item. |
Icon | Choose a UI icon to show when collected and in the hotbar. |
Stackable | Toggle to allow the same items to be stacked in a hotbar slot. |
Interactable | Toggle to allow players to interact with the item within a specified distance. |
Interaction Distance | Set the distance within which the player can interact to pick up the item. |
Hold Offset Postion | Set the item position offset relative to the bone point when being held in hand. |
Hold Offset Rotation | Set the item position offset relative to the bone point when being held in hand. |
Pick Up Audio | Select the audio to be played upon pickup. |
Events and Actions
Events
- OnPickedUp: When the item is picked up.
- OnHeld: When the item is held in hand.
- OnPackedUp: When the item is packed up into the hotbar slot.
- OnEnterInspection: When the player enters the inspection interface for this item.
- OnExitInspection: When the player exits the inspection interface for this item.
- OnPlacedDown: When the item is placed down.
Conditions
- IsPickable: If the item is pickable.
Actions
- PickUp: Add the item to the player's hotbar slots.
- HoldInHand: Hold the item in hand.
- SetInteractable: Set if players can interact with the item within a specified distance.
- StartInspection: Initiate the inspection interface for the item.
- Use: Use the item.
- SetPickable: Enable players to pick up the item.
- SetUnpickable: Disable players from picking up the item.