Skip to content

BP_LightSwitchTrigger

NullPointerExcy edited this page Apr 9, 2025 · 8 revisions

BP_LightSwitchTrigger

The BP_LightSwitchTrigger is a Blueprint class that serves as a trigger for the light system. It can be used to turn on or off lights in th e scene when the player interacts with it.

Features

Widget Settings

Property Type Default Value Description
Widget Not Usable Color Color FF0000FF (red) Color of the widget when the light is not usable.
Widget Usable Color Color FFFFFFFF (white) Color of the widget when the light is usable.

Trigger Box Lights

Property Type Default Value Description
Do Once? Boolean False If true, the trigger will only be activated once.
Connected Lights Array<BP_Light> [] Array of lights connected to the trigger.
Connected Light Strings Array<BP_LightString> [] Array of light strings connected to the trigger.
Connected Light Groups Array<BP_LightGroup> [] Array of light groups connected to the trigger.
Trigger with Delay? Boolean False If true, each light will be activated with a delay.
Trigger Delay Float 0.0 s Delay time in seconds before activating the next light.
Allow Player Interaction? Boolean True If true, the player can interact with the trigger.
Allow Other Classes Array<Class> [] Array of classes that can interact with the trigger.
Allow Specific Actors Array<Actor> [] Array of specific actors that can interact with the trigger.
Trigger Type Enum Box Type of trigger box. Options: Box, Sphere, Cylinder.
Use as Switch? Boolean False If true, the trigger will act as a switch (Interaction).
Trigger Switch Mesh Static Mesh None Static mesh used for the trigger switch.
Material Override Material None Material used for the trigger switch.
Switch Mesh Scale Vector (1.0, 1.0, 1.0) Scale of the trigger switch mesh.
Use Interaction Icon? Boolean False If true, an interaction icon will be displayed when the player is near the trigger.
Interaction Icon Position Vector (0.0, 0.0, 0.0) Position of the interaction icon relative to the trigger.

Trigger Box Editor

Property Type Default Value Description
Hide Trigger Box Boolean False If true, the trigger box will be hidden in the editor.
Show Connected Lights Boolean False If true, the connected lights will be shown in the editor with lines (Kinda buggy).

Switch Sounds

Property Type Default Value Description
Switch Sound On Sound Wave None Sound played when the switch is turned on.
Switch Sound Off Sound Wave None Sound played when the switch is turned off.

Trigger Box Connections

Property Type Default Value Description
Connected Triggers Array<BP_LightSwitchTrigger> [] Array of connected triggers.