Please or Register to create posts and topics.

Portal 2 SDK look output?

Page 1 of 2Next

So, in Portal 2, there were various times that Wheatley told you to look away as he "hacked" various doors. Is this a new trigger entity? If so, does anyone know what it is called? Because this could make some interesting puzzles.

Portal 1.5 http://www.moddb.com/mods/portal-15

The entity is a brush entity called trigger_look. Basically you would create a somewhat small, probably flat box on the wall opposite from where Wheatley is, and when the player looks at this volume then you have the entity trigger whatever needs triggering.

This is actually used in the original Portal during one of the first "fling" chambers, with the wall panels that extend and/or rotate to be angled. Go back and play these chambers again - they don't rotate or extend until you look at them.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Oh, thanks! With a name like trigger_look, it seems like I'd know about it.

Also, did you know you don't actually have to look at the art in the beginning of the game? It's weird that they would make you look at it, even though you don't have to.

Portal 1.5 http://www.moddb.com/mods/portal-15

trigger_look is really useful when you need players to watch something that is critical to your puzzle, again using the Portal 1 example. You are looking around the room for a portalable surface and suddenly something angles, and you know right away that it's important without having to actually be told it is.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Another thing, if I recall correctly, the trigger_look also can be set to fire when you look away from it, making it easier to trigger (e.g. rather than looking at a specific spot away from wheatley, you can just look anywhere away from him)

Hear the turret, for it is knell. It summons thee to heaven, or to hell.

Yeah you can set the radius on it pretty large to do something like that I believe. You might want to decompile the map that has this in it and see exactly how Valve did it.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Well I want to use it differently anyway, to make it so you DO have to look directly at an entity. (My map is going to be called "Out of Sight, Out of Mind".) But I want to make it so it only fires an output when I AM looking at it. Right now, for example, I have a door that will open if I look at a certain panel extruding from the wall, but when I look away, it remains open, I can't find an output for looking away, would I have to make a separate entity for looking away?

Portal 1.5 http://www.moddb.com/mods/portal-15

I haven't used trigger_look in this way so I can't be 100% positive. Try using the "OnStartTouch" Output for when the player starts looking at the volume (and thus opens the door), and then using the "OnEndTouchAll" Output to close the door. In theory that should work.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

But wouldn't that be an output just for when in the trigger brush, not specifically looking at the target?

Portal 1.5 http://www.moddb.com/mods/portal-15

trigger_look doesn't operate like other triggers. You are "in" the trigger when you are looking at it, that's it's entire purpose. Instead of being physically in the volume, your view is passing through it.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Page 1 of 2Next