Light and Switch
This smart asset belongs to the following package:
- com.yahaha.sdk.horrorgameassets
 
The Light and Switch consists of two smart assets: the Light and the Switch.
Light
The Light is a static light fixture to brighten the surroundings.

| Attributes | Description | 
|---|---|
| Glint Time | Time (in seconds) until the light becomes steady after flashes. | 
Events and Actions
Events
- OnLightOn: When the light is turned on.
 - OnLightOff: When the light is turned off.
 
Conditions
- IsLightOn: If the light is turned on.
 
Actions
- TurnOn: Activate the light.
 - TurnOnGlint: Activate light with a flickering effect before steadying.
 - TurnOff: Deactivate the light.
 
Switch
The Switch is an interactive object to control light sources or other devices.

| Attributes | Description | 
|---|---|
| Switch On Time | Time (in seconds) to turn on the switch. | 
| Switch Off Time | Time (in seconds) to turn off the switch. | 
| Interaction Distance | Distance within which the switch can be interacted with. | 
Events and Actions
Events
- OnSwitchOn: When the switch is turned on.
 - OnSwitchOff: When the switch is turned off.
 
Conditions
- IsSwitchOn: If the switch is turned on.