Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Trigger Look

From HalfLife 2 Knowledge Base

Jump to: navigation, search

by Taz00

First make a simple room and add a light like so:

simpleroom.JPG

Then add a new brush with the trigger (tools/toolstrigger) texture and tie it to a trigger_look entity (CTRL+T) like so:

trigger_look_brush.JPG

Then add an env_explosion entity and name it "explode":

explode.JPG

Add an infodecal behind that so its easy to see where it is ingame, i used "decals/decalsigndanger001f" for the effect :wink: :

decal.JPG

Now go back to the trigger_look's properties and do the following:


Set "Look Target" to "explode" so when the env_explosion is looked at, it triggers an output.

Look Time(in sec) to the seconds you have to look at the entity before trigger, i set mine to 0.2, its rather fast.

Make sure the flag "Fire once" isn’t ticked

Don’t change the rest


Then add an output like so:

output.JPG


That means when triggered (looked at for over 0.2 seconds) make the env_explosion explode

Personal tools