How To Make TriggerLights

by: Cralex NS
cns@planetunreal.com

How to make TriggerLights?

(Note: I hope you can understand if not ICQ#91846003 me. This tutorial is for experienced UED users)

Ok, make your map and the lights you want to be turned on/off by a switch. Make the light (brushes) and open up the Class Browser
Find: LightTriggerLight (there are 2 of them, it dosnt matter wich one you choose)

Now add one of those at each light brush, setup their lightning properties and it should look something like this:

Now open up the properties for your TriggerLights again and expand TriggerLight and set bInitiallyOn to `true`
Expand Object and set InitialState to TriggerToggle
Last expand Event and then set Tag to `light`
Now the lights are fixed so build a switch somewhere (brush) and open up the Class Browser, expand triggers and add a trigger
Set the Event > Event of the trigger to `light`
And set Trigger > ReTriggerDelay to `1`

Rebuild your map, and test out the triggerlights, if they doesn`t work go back to the start of this tutorial and check if you missed something.

Effect Step 1:
(If you are having more sets of lights, 2x2x2 or 2x2 like on the picture in this tutorial, effect step 1 and 2 will be nice.)
Now, it works a bit boring doesn`t it? We want some nice effect on the triggerlight so lets make that right now :)
First, open up 2 of your lights properties and expand Event and set Tag to `light2` and the other set of lights to `light3` and if more just go on.

Now, open up the Class Browser again and expand Triggers, add a Dispatcher somewhere around your trigger
(it doesn`t matter where, but keep it somewhere around so you know it belongs to the lights)

Open up the properties of your Dispatcher, expand Event and set Tag to `lightcon`
Now expand Dispatcher, expand OutEvents and set [0] to `light`, [1] to `light2`, [2] should be `light3` and so on, if you got more sets of light.
Then expand OutDelays, set [0] to `0.5`, [1] to `0.5`, [2] should be `0.5` etc. (now 0.5 is just an example 0.2 or 0.3 would be nice too)
Last set the Event > Event of your trigger to `lightcon`

Rebuild your map and test out the new nice effect. The lights turn on/off could get more advanced but lets just goto making them feel real, adding sound to them!

Effect Step 2:
Open the Class Browser, expand triggers and add a SpecialEvent for each set of lights you got.

Set the first SpecialEvent`s tag to `light` and the second to `light2`, third to `light3` etc.
Select all the SpecialEvent`s expand SpecialEvent, press the sound field and select a sound for your lights when they turn on/off
(A lot of click sounds can be found in Activates.uax)
Now Expand Object and set InitialState to PlaySoundEffect.

Now, rebuild your map and enjoy the great feeling of switching lights on/off with a really cool effect, and fell of real :)