Desk and Drawers
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
The Desk and Drawers consists of two smart assets: the Drawer and the Cabinet.
Drawer
The Drawer is a movable compartment for hiding items and revealing clues.
Attributes | Description |
---|---|
Interaction Distance | Distance within which the drawer can be interacted with. |
Drag Distance | Length in meter that the drawer can be dragged up to open. |
Open Time | Time in seconds to open the drawer. |
Close Time | Time in seconds to close the drawer. |
Events and Actions
Events
- OnOpened: When the drawer is opened.
- OnClosed: When the drawer is closed.
Conditions
- IsOpen: If the drawer is open.
Actions
- Open: Open the drawer.
- Close: Close the drawer.
Cabinet
The Cabinet is an openable object for hiding items and revealing clues.
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. |
Open Angle | Angle change for the openable cabinet to rotate when opened. |
Events and Actions
Events
- OnOpened: When the cabinet is opened.
- OnClosed: When the cabinet is closed.
Conditions
- IsOpen: If the cabinet is open.
Actions
- Open: Open the cabinet.
- Close: Close the cabinet.