Valve and Door
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
The Valve and Door consists of two smart assets: the Valve and the Door.
Valve
The Valve is an item to gather for overall progress.
Attributes | Description |
---|---|
Name | Enter a unique name to identify and manage the valve easily. |
Label | Type the name displayed in-game when the player collects this valve. |
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 valve. |
Hold Offset Postion | Set the valve position offset relative to the bone point when being held in hand. |
Hold Offset Rotation | Set the valve position offset relative to the bone point when being held in hand. |
Interactable | Toggle to allow players to interact with the valve within a specified distance. |
Pick Up Audio | Select the audio to be played upon pickup. |
Events and Actions
Events
- OnPickedUp: When the valve is picked up.
- OnHeld: When the valve is held in hand.
- OnPackedUp: When the valve is packed up into the hotbar slot.
- OnEnterInspection: When the player enters the inspection interface for this valve.
- OnExitInspection: When the player exits the inspection interface for this valve.
- OnPlacedDown: When the valve is placed down.
Conditions
- IsPickable: If the valve is pickable.
Actions
- PickUp: Add the valve to the player's hotbar slots.
- HoldInHand: Hold the valve in hand.
- SetInteractable: Set if players can interact with the valve within a specified distance.
- StartInspection: Initiate the inspection interface for the valve.
- Use: Use the valve.
- SetPickable: Enable players to pick up the valve.
- SetUnpickable: Disable players from picking up the valve.
Door
The Door is a door requiring an item to be inserted to open.
Attributes | Description |
---|---|
Interaction Distance | Distance from which the openable cabinet can be triggered to open. |
Open Time | Time in seconds to fully open the openable cabinet. |
Close Time | Time in seconds to fully close the openable cabinet. |
Required Item | Enter the item name to unlock the door with the valve. |
Valve Insert Distance | Distance from which the valve can be inserted. |
Valve Rotation Time | Time in seconds for the valve to complete rotating. |
Valve Rotation Angle | Angle of the valve in degrees when the valve completes rotating. |
Events and Actions
Events
- OnValveInserted: When the valve is inserted.
- OnOpened: When the cabinet is opened.
- OnClosed: When the cabinet is closed.
Conditions
- IsValveInserted: If the valve is inserted.
- IsOpen: If the cabinet is open.
Actions
- Open: Open the cabinet.
- Close: Close the cabinet.