Chasing Laser

From Valve Developer Community
Revision as of 09:37, 28 November 2011 by Jack5500 (talk | contribs) (Created page with "'''Chasing Lasers are a custom element that is not shipped with Portal 2. It's basically a Thermal Discouragement Beam that follows the player whereever he goes. ==Crea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Chasing Lasers are a custom element that is not shipped with Portal 2. It's basically a Thermal Discouragement Beam that follows the player whereever he goes.

Creating Chasing Lasers

0.Create a new map with a basic room

1. Create a box with the minimum width and height of 64 x 64 and make it a func_tank with the following settings:

Property Name Value
Name Tank
Pitch Rate 30
Pitch Range 90

2. Create an env_portal_laser and apply with the following settings:

Property Name Value
Parent Tank

3. Create a logic_auto and give it the following Outputs:

Property Name Value
My Output Target Entity Target Input Parameter Delay Only Once
OnMapSpawn Tank SetTargetEntity !player o.oo No

4.Done

Theory

In the last steps you created a laser spawn and "welded" it onto a brush that is following the player everywhere around. The Tank will follow the player even he can't be seen. The laser is non-lethal, but that can be changed in the env_portal_laser settings

Bugs

- When you walk up to the laser it can't damage you