Lever Puzzle
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
 
The Lever Puzzle consists of three kinds of smart assets: the Lever Puzzle, the Lever and the Lamp.
Lever Puzzle
The Lever Puzzle is a device requiring three levers to be inserted into designated slots to solve the puzzle.

Events and Actions
Events
- OnSlotInserted: When one or two levers are inserted into the slot(s).
 - OnPuzzleSolved: When all three levers are inserted into the slots.
 
Lever
The Lever is an item to gather for overall progress.

| Attributes | Description | 
|---|---|
| Name | Enter a unique name to identify and manage the lever easily. | 
| Label | Type the name displayed in-game when the player collects this lever. | 
| 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 lever. | 
| Hold Offset Postion | Set the lever position offset relative to the bone point when being held in hand. | 
| Hold Offset Rotation | Set the lever position offset relative to the bone point when being held in hand. | 
| Interactable | Toggle to allow players to interact with the lever within a specified distance. | 
| Pick Up Audio | Select the audio to be played upon pickup. | 
Events and Actions
Events
- OnPickedUp: When the lever is picked up.
 - OnHeld: When the lever is held in hand.
 - OnPackedUp: When the lever is packed up into the hotbar slot.
 - OnEnterInspection: When the player enters the inspection interface for this lever.
 - OnExitInspection: When the player exits the inspection interface for this lever.
 - OnPlacedDown: When the lever is placed down.
 
Conditions
- IsPickable: If the lever is pickable.
 
Actions
- PickUp: Add the lever to the player's hotbar slots.
 - HoldInHand: Hold the lever in hand.
 - SetInteractable: Set if players can interact with the lever within a specified distance.
 - StartInspection: Initiate the inspection interface for the lever.
 - Use: Use the lever.
 - SetPickable: Enable players to pick up the lever.
 - SetUnpickable: Disable players from picking up the lever.
 
Lamp
The Lamp is a static light fixture to brighten the surroundings.

| Attributes | Description | 
|---|---|
| Glint Time | Time (in seconds) until the lamp becomes steady after flashes. | 
Events and Actions
Events
- OnLightOn: When the lamp is turned on.
 - OnLightOff: When the lamp is turned off.
 
Conditions
- IsLightOn: If the lamp is turned on.
 
Actions
- TurnOn: Activate the lamp.
 - TurnOnGlint: Activate lamp with a flickering effect before steadying.
 - TurnOff: Deactivate the lamp