Tutorial - How to make a lightswitch turn on lights one at a time.

Here's what you need:
  • A trigger or func_button. This will be our lightswitch.
  • Two basic light entities. Name these "lightset1" and "lightset2"
  • Three trigger_relay entities. Two of these should be called "lightrelay1" and "lightrelay2". The third one should be called "lightset1".


Steps:

  1. Create and place all needed entities.
  2. Set the lightswitch to target "lightrelay1".
  3. Give "lightrelay1" a delay of 1 and set it to target "lightset1".
  4. Set up "lightset1"'s trigger_relay to target "lightrelay2". It does not need a delay.
  5. Give "lightrelay2" a delay of 1 and set it to target "lightset2".
..and that's it. If you have more sets of lights, just repeat step 4 and 5 with a new set number.

Optional:
If you want a sound to play whenever the lightset turns on here's how to do it:
  1. Create a func_door somewhere near and out of sight your light source. Make sure to make a small brush too.
  2. Name it "lightset1" (or whatever set number it is).
Now whenever the light turns on a sound will play.



Here's a basic chart (made in MS Paint) of how all the entities should all connect together.

chart.png


Provided here is the BSP, MAP, and WAD files to see this in action in your favorite editor. I hope this helps.
 

Attachments

  • lightswitch.zip
    79.5 KB · Views: 59