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.
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.