Checking if an object is being looked at

Avatar
Soundlogic
169 Posts
Posted May 17, 2011
I am trying to use 'trigger look' to determine if an object is being looked at, but it doesn't seem to be working. Any advise on how to determine if an object is being looked at by any player?
Thank You,
Sound Logic
Advertisement
Registered users don’t see ads! Register now!
Avatar
msleeper
4,136 Posts
Admin
Posted May 17, 2011
Replied 1 minutes later
Post a screenshot of your Outputs tab.
Avatar
Soundlogic
169 Posts
Posted May 17, 2011
Replied 19 minutes later
Outputs:
These are the outputs for my trigger_look

My Output Target Entity Target Input
OnTimeOut paint_sprayer Stop
OnTrigger paint_sprayer Start

My look target is set
LookTime is .1
FieldOfView is .9
Timeout is .1

The trigger fills the entire room.

Thank you,
Sound Logic

Avatar
msleeper
4,136 Posts
Admin
Posted May 17, 2011
Replied 30 minutes later
The trigger_look should use "OnStartTouch" for when it needs to start being looked at, and "OnEndTouchAll" for when it is no longer being looked at.

You really shouldn't have it fill the entire room. You should just have it fill the general area that you want the player to be looking at when it enables the paint sprayer. Unlike a normal trigger brush, the player does not have to physically be in it's volume to activate it.

Avatar
Soundlogic
169 Posts
Posted May 18, 2011
Replied 9 hours later
OK... That is kind of weird...
Thanks.
Sound Logic
Avatar
Soundlogic
169 Posts
Posted May 18, 2011
Replied 10 hours later
OK, I have changed my inputs and outputs to as follows:

My Output Target Entity Target Input
OnEndTouchAll paint_sprayer Stop
OnStartTouchAll paint_sprayer Start

And have tried it with both a trigger_look and a trigger_multiple
It still doesn't seem to be working.
Thank You,
Sound Logic

Avatar
Soundlogic
169 Posts
Posted May 20, 2011
Replied 2 days later
The trigger is working, however if either timeout or trigger occurs and I don't exit, the other one won't occur. Is there any way around this?
Thank You,
Sound Logic

EDIT: Also is there a way to get it to work through portals?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Soundlogic
169 Posts
Posted May 22, 2011
Replied 1 day later
Any tips on making the trigger_look not wait for me to leave and reenter? Anyway to reset it whenever it activates?
Thank You,
Sound Logic