Light switches
Prerequisites
The light
- Place a light of type
TriggerLight
in your map. - Open the light's properties.
- Set
TriggerLight > bInitiallyOn
toTrue
. - Set
Object > InitialState
toTriggerToggle
. - Set
Events > Tag
toMyTriggerLight
.
The switch
- Place a light switch actor (
Decoration > LightSwitch
) in your map. - Open the light switch's properties.
- Set
Events > Event
toMyTriggerLight
.
Finishing up
Rebuild the lighting in your map and click Play Map!
to test it out.