How to make 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 doorway.  

Step 1: 

Create a wall through the center of your level and cut out a doorway in it. It should look something like the picture on the right. 

note
those three red squares are some detail added later on, ignore them for now.

 
 
______________________________________Step 2: 
 
 
Add two Target\Laser entities. Select the first one and goto it's property panel. In the dmg field set the amount of damage you want to be done to the player when they come in contact with the laser. If using the laser for something like a security device, set this to a high number such as 1000 so that anyone who comes in contact with it will be killed instantly. In the target field enter a name for the second entity. This same name will later be entered as that second entitie's name. In the spawnflags field you need to set the properties for the laser. This can be done from the pull down menu to the right of the field. For now, select the Start on option and select the color that you want the laser to be.

Step 3: 

Now, select the second entity and goto it's properties. You only need to set one thing for this entity, in the targetname field enter the name for the entity. This should be the same name that you entered in the first entity's target field. What you just did was tell that first entity to target this one. In other words, the laser that will originate from the first entity, will be directed towards this second entity. Keep in mind however, that the laser won't stop at this entity. It will stop once it hits a brush face. This second entity only serves to direct the laser.

______________________________________Step 4: 

 
Create two more pairs of entities similar to the one you just made. But this time use different names for the targets. For instance, in my test map I have the first one tageting t1, the second targeting t2, and the third targeting t3.
Notes
The three red squares that I added to my example are detail to make the doorway seem more realistic. They are the points at which the lasers eminate from and target. If doing a similar thing in your map, be carefull how you position those brushes. Make sure the back sides of them are not in front of the laser entities. If they are, they will block the laser before it even has a chance to appear.

That's it! Go block off some doorways!
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.