I'm trying to make a Portal 2 themed map and I can't work out how to make a trigger that can be activated when hit by a beam. I'm making one of those boxes that reflect beams. The beam works but I don't know how to make the trigger. How can I do it?
Set the Filter Name to a [url=http://developer.valvesoftware.com/wiki/Filter_activator_name]filter_activator_name[/url] maybe?
thanks, I'll have a look next time I'm on hammer
What kind of trigger do I need to use? and what output?
I think the portal 2 boxes will use custom entities. I'm not sure if there is a valid way to replicate the effect. On the whole, triggers are not activated by entities passing into them, such as the beam of an env_beam.
This is true, but somebody has remade them. I tried, but it didn't go completely well.
I know that Reepblue managed to do it and there's also a Portal 2 Mappack that had them
There is? Link me please.
[url]http://www.moddb.com/mods/aperture-dj-vu/downloads/portal-2-mappack[/url]
It's not very long
[editline]06:51PM[/editline]
WOuld it be possible to make a trigger that goes on the wall? Would that be easier?
I didn't see any cubes that reflected the lasers. The lasers bouced off mirrors is just good entity placement that was parented to the plats. They used env_laser.
Ok, I've worked it out. I've stopped on the cube for now and have instead just made a button that is activated by damage and when the beam is put through a portal it should activate the button. But annoyingly there's something about beams that makes it so that they don't damage anything after being through a portal. How the hell do I make it so that it keeps it's damage?
You mean like this?
[hd]http://www.youtube.com/watch?v=6jxgCP0eQxo[/hd]
I used trigger_hurt
how did you get the trigger hurt on the beam?
Parented it to the portal.
how do you do that?
:doh:
Pre place a portal, and have it off. Then name it.
Make your trigger_hurt where the beam will be, through your portal.
Set the trigger_hurt's parent to the pre placed portal.
Now, I've been looking for ages. What should I use as a trigger on the portal to activate the trigger_hurt on the other. I know I should use something with an OnTakeDamage output like a func_physbox but I don't know how to make one of those so that the player can go through it, the beam can go through it but it still takes the damage.
Hmmm. Laser reflecting cubes. I got a great idea! You can make beam to trigger the cubes OnUser(1-4) (maybe?).
So there is the basic idea:
(I am too lazy to draw it sorry. So I am gonna use an ascii art :) )
So the basics:
X-------------------------------¤---------------------x
funch_brush (cube) env_beam (laser) info_target (laser end point)
1. Create a cube (Can be a model etc.)
2. Create an info_target far away from the cube. ( Make sure that the cube faces to the info_target! )
3. Create an env_beam and put it beetvee the cube and the info target.
Then set the env_beams two end points. ( 1st the cube second is the info target ). After that parent your info target to your cube.
Entity propertys:
Cube:
Output:
OnUser1 = laser TurnOn
Laser:
Output:
OnTouchebByEntity !activator FireUser1
So basicly. If a laser hits your cube it activates its self laser, so it looks like that the cube reflected the original one.
The only problem of the concept that tha env_beam dont have an Output for OnTouchEndedByEntity or something like that so ths cubes laser wont switch of.
Hope it helps you somehow.
Sorry, you need to Log In to post a reply to this thread.