Opening a door by shooting a button.

cruizer

L2: Junior Member
Mar 6, 2008
52
0
As if I don't ask enough questions....

I swear I have seen a tutorial on how to open a door by shooting a button, but I can't find them now.
I want the doors to open and close only bu shooting the button.
Anyone know how to do this?
 

DJive

Cake or Death?
aa
Dec 20, 2007
1,465
741
on the door properties *ALT+ENTER*

Health (shoot open)
 

cruizer

L2: Junior Member
Mar 6, 2008
52
0
Well i don't want to have to shoot the door itself, I want to shoot a button.
Shooting the button will open a series of doors, not just one.
 

cruizer

L2: Junior Member
Mar 6, 2008
52
0
In the Button's Flags check Damage activates or so

What settings on the output do I need in order to link it to do the door.
I can get the OnDamage and link it to the door, but what "via" input do i need? There is no "open" and/or "close" option.
 

trackhed

L3: Member
Jan 24, 2008
106
2
Names:
func_door = Door1 AKA the door

trigger_multiple = Trig1 AKA the trigger

func_movelinear = Button1 AKA the button

Button1 I/O:
Add
My Output Named : OnDamage
Target The Entity Named : Trig1
Via This Input : Trigger

Trig1 I/O :
Add
OnTrigger
Door1
Open
 

cruizer

L2: Junior Member
Mar 6, 2008
52
0
OK, I've tried using func_movelinear, and there is no output names "On Damanged"

I've tried using func_button, it has "OnDamaged" outPut, but there is no Via this input "Trigger."
 

cruizer

L2: Junior Member
Mar 6, 2008
52
0
No, just set the input as Press. This will move the "button" (the button's a door in this case.)

Please excuse my ignorance Mangy, as we have a bucnh of different items on this thread...

What functions are you taking about where, and which one do you say the input needs to be "onpressed"? I changes the func_button to onpressed for the output, but now it doesn't do anything.


Here's what i have at the moment, playing around.
The button itself is func_button

Settings are:

OnDamaged
Door 1
Open

OnDamaged
Door 1
Close

Then the func_door. No trigger brush or func.

It works great when you shoot the button once. The door opens.
At first, the door would close on it's own after 4 seconds.
I changed the rest on the func_door to -1 so it doen't close on it's own.

You shoot the button once, the door opens. And now never closes, even when you shoot the button again.
 

cruizer

L2: Junior Member
Mar 6, 2008
52
0
You guys are all awesome!
The button works fine now. I wouldn't have gotten it without you!
 

cruizer

L2: Junior Member
Mar 6, 2008
52
0
Thanks again Mangy.

The next question, related to this is, if I have one button opening multiple doors, if they same type, style, direction, etc. Do I have to have to give them all unique names, or can I name them all the same? Will that cause confusion in the compiling? I've tested it, and if multiple doors have the same name, they all open when the button is triggered. I jsut want to know if this is bad for some reason.


Also, speaking of the button. When I shoot it, it moves away from the wall for a few seconds. is there a way to prevent this from happening?
 
Last edited:

cruizer

L2: Junior Member
Mar 6, 2008
52
0
Nevermind the button part, I found the "Don't move" Flag, i assume that'll do the trick.