Openable Box and Item
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
The Openable Box and Item consists of two smart assets: the Openable Box and the Battery.
Openable Box
The Openable Box is an openable object for hiding batterys and revealing clues.
Attributes | Description |
---|---|
Interaction Distance | Distance from which the openable box can be triggered to open. |
Open Angle | Angle change for the openable box to rotate when opened. |
Open Time | Time in seconds to fully open the openable box. |
Close Time | Time in seconds to fully close the openable box. |
Events and Actions
Events
- OnOpened: When the box is opened.
- OnClosed: When the box is closed.
Conditions
- IsOpen: If the box is open.
Actions
- Open: Open the box.
- Close: Close the box.
Battery
The Battery is a power source to activate flashlights or other devices.
Attributes | Description |
---|---|
Name | Enter a unique name to identify and manage the battery easily. |
Label | Type the name displayed in-game when the player collects this battery. |
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 battery. |
Hold Offset Postion | Set the battery position offset relative to the bone point when being held in hand. |
Hold Offset Rotation | Set the battery position offset relative to the bone point when being held in hand. |
Interactable | Toggle to allow players to interact with the battery within a specified distance. |
Pick Up Audio | Select the audio to be played upon pickup. |
Battery Duration | Time in seconds that the battery will last when it's on. |
Events and Actions
Events
- OnPickedUp: When the battery is picked up.
- OnHeld: When the battery is held in hand.
- OnPackedUp: When the battery is packed up into the hotbar slot.
- OnEnterInspection: When the player enters the inspection interface for this battery.
- OnExitInspection: When the player exits the inspection interface for this battery.
- OnPlacedDown: When the battery is placed down.
Conditions
- IsPickable: If the battery is pickable.
Actions
-
PickUp: Add the battery to the player's hotbar slots.
-
HoldInHand: Hold the battery in hand.
-
SetInteractable: Set if players can interact with the battery within a specified distance.
-
StartInspection: Initiate the inspection interface for the battery.
-
Use: Use the battery.
-
SetPickable: Enable players to pick up the battery.
-
SetUnpickable: Disable players from picking up the battery.