Lighter and Candle (HandProp)
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
The Lighter and Candle (HandProp) package consists of the Lighter smart asset, the Candle smart asset, and an empty object with light logic attached.
Lighter
The Lighter is a handheld flame source for illuminating.
Behavior
In the Lighter smart asset, its Behavior components include:
Property | 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. Disabled by default. |
Interaction Distance | Set the distance within which the player can interact to pick up the lighter. |
Interactable | Toggle to allow players to interact with the lighter within a specified distance. Enabled by default. |
Pick Up Audio | Select the audio to be played upon pickup. |
Event List
- OnPickedUp: When the lighter is picked up.
- OnHeld: When the lighter is held in hand.
- OnPackedUp: When the lighter is packed up into the hotbar slot.
- OnEnterInspection: When the player enters the inspection interface for this lighter.
- OnExitInspection: When the player exits the inspection interface for this lighter.
- OnLighted: When the lighter is ignited.
- OnExtinguished: When the lighter is turned off.
Condition List
- IsLightOn: If the lighter is turned on.
Action List
- PickUp: Add the lighter to the player's hotbar slots.
- 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 lighter on or off.
Item Behavior Component
Follows the property settings of the Behavior component
Light Component
Mainly controls whether the lighter is always charged and the delay to switch.
Dummy Holdable Component
Adds a dummy model for holding the lighter.
Candle
The Candle is a stationary light source for illuminating.
Behavior
Model List
Candle: Select a candle model.
Event List
- OnLighted: When the lighter is ignited.
- OnInteracted: When the player interacts with the candle.
Condition List
- IsLightOn: If the candle is lit or not.
Action List
- LightCandle: Light the candle.
Light Logic
An event trigger is attached to the empty object, with the trigger, condition, and action set as follows: when the candle is interacted with, if the lighter is on, the candle will be lit.