LaserHowTo Created 15 years ago2008-09-23 13:35:09 UTC by HLGenius HLGenius

Created 15 years ago2008-09-23 13:35:09 UTC by HLGenius HLGenius

Posted 15 years ago2008-09-24 06:10:35 UTC Post #255963
Hey guys??...
I see in some maps that when you put a crate to block a laser/beam, it blocks the beam. Like there's a beam going from one direction to the other the you put a crate to its path iits either the laser will destroy the crate or the laser will just stop to the face of the crate. I know this is simple, but i dunno how to do it

So, do some of you guy know how?
If you know please help me.
Thanks in advance!
-HLGenius-
Posted 15 years ago2008-09-24 11:32:08 UTC Post #256015
I have not done it, but i have an idea. Try this:
Make a trigger multiple somewhere where the box can slide in-front of the laser's path. Under flags, tick the Pushables box and the No Clients box. When the trigger multiple is triggered by the box, have it tell a trigger_changetarget to change the target of the laser to an info_target somewhere in the projected path of the box, but not the box itself so the laser does not follow the box as it moves. then after the box is out of the trigger multiple, have the same thing change the laser's target back to the original target.

Do you get what i'm saying?
Tetsu0 Tetsu0Positive Chaos
Posted 15 years ago2008-09-24 21:39:39 UTC Post #256063
Thats a bit of the long-winded way. Just create a func_pushable. All solid entities block lasers, even players and monster so if someone pushes a func_pushable in the way of the beam it blocks it. If you don't want a pushable to break, don't check the 'breakable' flag! :crowbar:
Posted 15 years ago2008-09-27 00:27:17 UTC Post #256200
Tetsu0: i think i get what you're saying, but wouldn't that just work if the box only moved along the one axis? if the info_target was just in front of the box, you wouldn't be able to move the box further away or closer to the laser without the laser either ending in midair or inside the box... right?
Jessie JessieTrans Rights <3
Posted 15 years ago2008-09-27 01:58:55 UTC Post #256209
thanks guys..

(mods you may now close this post..)
You must be logged in to post a response.