Flashlight and Battery
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
 
The Flashlight and Battery consists of two smart assets: the Flashlight and the Battery.
Flashlight
The Flashlight is a portable light source for exploring dark areas.

| Attributes | Description | 
|---|---|
| Name | Enter a unique name to identify and manage the lighter easily. | 
| Label | Type the name displayed in-game when the player collects this lighter. | 
| Icon | Choose a UI icon to show when collected and in the hotbar. | 
| Stackable | Toggle to allow the same lighters to be stacked in a hotbar slot. | 
| Interaction Distance | Set the distance within which the player can interact to pick up the lighter. | 
| Hold Offset Postion | Set the lighter position offset relative to the bone point when being held in hand. | 
| Hold Offset Rotation | Set the lighter position offset relative to the bone point when being held in hand. | 
| Interactable | Toggle to allow players to interact with the flashlight within a specified distance. | 
| Rechargeable | Allows power depletion and recharging for the item. | 
| Initial Time | Duration in seconds that the flashlight can be used for the first time before the power runs out. | 
| Power Source | Specify the name of the item that powers the flashlight. | 
Events and Actions
Events
- OnPickedUp: When the flashlight is picked up.
 - OnHeld: When the flashlight is held in hand.
 - OnPackedUp: When the flashlight is packed up into the hotbar slot.
 - OnEnterInspection: When the player enters the inspection interface for this flashlight.
 - OnExitInspection: When the player exits the inspection interface for this flashlight.
 - OnPlacedDown: When the flashlight is placed down.
 - OnLightOn: When the flashlight is on.
 - OnLightOff: When the flashlight is off.
 - OnTrytoTurnOn: When the player attempts to turn on the flashlight.
 
Conditions
- IsPickable: If the flashlight is pickable.
 - IsLightOn: If the flashlight is on.
 
Actions
- PickUp: Add the flashlight to the player's hotbar slots.
 - HoldInHand: Hold the flashlight in hand.
 - SetInteractable: Set if players can interact with the flashlight within a specified distance.
 - StartInspection: Initiate the inspection interface for the lighter.
 - Use: Use the lighter.
 - SetPickable: Enable players to pick up the lighter.
 - SetUnpickable: Disable players from picking up the lighter.
 - Switch: Turn the flashlight on or off.