How to make moving lasers
Note: This tutorial assumes you already have the basics of a level, ie. a hollowed box and a player start inside it. =]  

For this tutorial we'll be creating a laser blocked hallway.  

Step 1: 

Make a hallway, the easiest way to do this is to just stretch out the doorway from the first laser example.
 
 
______________________________________Step 2: 
 
 
Create a small brush, shrink it as small as it will go, and texture it with the clip texture. Apply the Func\Train entity to it and goto it's property panel. In the speed field set how fast you want the laser to travel along the train/path. In the targetname field enter a name for the path. In the spawnflags field check Start on from the pull down menu. And finally, in the target field enter a name for the first point on the path that you will create in a second.
Step 3: 
Now, create a Misc\Path Corner entity. This will be the first point on the path that the laser will follow. Goto it's property panel. In the target field give it the name of the point you will create next. In the targetname field enter the name you put in the Train's target field. Now, keep creating Path Corner entities untill you have your desired path. Each entity should be targeted by the previous one and should target the next one. The last one in the path should target the first one so that the laser loops around the path. 
 
 
Step 4: 
Here's a pic of how my train(s) turned out. I have a laser eminating from each side of the wall and following a train on the opposite wall it eminates from. It follows a rectangular path along the edges of the wall. The little cube you see inside two of the path corners is the Train entity that was created in step two.
 
 
That's it! Go block off some hallways!
Back to index | Download the map and bsp

Copyright ©1998 Bryan Beretta and Lithium Software. All rights reserved. Permission required for
use of any and all material found on or downloaded off this site for purposes other than learning.