[Solved] Event happening when you look at it

Avatar
KFredje
55 Posts
Posted Jun 07, 2012
Hey, is it possible to let something happen when you look at something?

Like, you look at a wall and it opens? (Won't be a part of the puzzle, just some extras)

Advertisement
Registered users don’t see ads! Register now!
Avatar
Nacimota
345 Posts
Posted Jun 07, 2012
Replied 10 minutes later

Yes:

https://developer.valvesoftware.com/wiki/Trigger_look

Avatar
KFredje
55 Posts
Posted Jun 07, 2012
Replied 1 hour later
Tnx for the tip.

I tried to get it working but it won't...

I make a trigger brush with OnTrigger to open a door. I put as Look Target a turret (prop_dynamic_override) but nothing happens...

Avatar
Lpfreaky90
2,842 Posts
Posted Jun 07, 2012
Replied 10 minutes later
1) Did you tie that brush to an entity?
2) You need to be IN the volume of the trigger_look in order for it to function
3) Looking through portals will NOT trigger this.
Advertisement
Registered users don’t see ads! Register now!
Avatar
KFredje
55 Posts
Posted Jun 07, 2012
Replied 4 minutes later

npc_idiot wrote:
1) Did you tie that brush to an entity?
2) You need to be IN the volume of the trigger_look in order for it to function
3) Looking through portals will NOT trigger this.

It was no. 2. I wasn't in the volume. Tnx for the hint, god it working now.