Book and Bookcase Puzzle
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
The Book and Bookcase Puzzle consists of two smart assets: the Bookcase Puzzle and the KeyBook.
Bookcase Puzzle
The Bookcase Puzzle is a bookcase requiring an item to be inserted to solve the puzzle.
Attributes | Description |
---|---|
Interaction Distance | Distance from which an item can be inserted into the bookcase. |
Required Item | Enter the item name to be placed into the bookcase. |
Move Distance | Distance from which the bookcase is triggered to move. Use negative numbers to move it right, and positive numbers to move it left. |
Move Duration | Time in seconds for the bookcase to complete moving. |
Events and Actions
Events
- OnPuzzleSolved: When the bookcase finishes moving.
KeyBook
The KeyBook is an item to gather for overall progress.
Attributes | Description |
---|---|
Name | Enter a unique name to identify and manage the keybook easily. |
Label | Type the name displayed in-game when the player collects this keybook. |
Icon | Choose a UI icon to show when collected and in the hotbar. |
Stackable | Toggle to allow the same batteries to be stacked in a hotbar slot. |
Interaction Distance | Set the distance within which the player can interact to pick up the keybook. |
Hold Offset Postion | Set the keybook position offset relative to the bone point when being held in hand. |
Hold Offset Rotation | Set the keybook position offset relative to the bone point when being held in hand. |
Interactable | Toggle to allow players to interact with the keybook within a specified distance. |
Pick Up Audio | Select the audio to be played upon pickup. |
Events and Actions
Events
- OnPickedUp: When the keybook is picked up.
- OnHeld: When the keybook is held in hand.
- OnPackedUp: When the keybook is packed up into the hotbar slot.
- OnEnterInspection: When the player enters the inspection interface for this keybook.
- OnExitInspection: When the player exits the inspection interface for this keybook.
- OnPlacedDown: When the keybook is placed down.
Conditions
- IsPickable: If the keybook is pickable.
Actions
-
PickUp: Add the keybook to the player's hotbar slots.
-
HoldInHand: Hold the keybook in hand.
-
SetInteractable: Set if players can interact with the keybook within a specified distance.
-
StartInspection: Initiate the inspection interface for the keybook.
-
Use: Use the keybook.
-
SetPickable: Enable players to pick up the keybook.
-
SetUnpickable: Disable players from picking up the keybook.