Simple Activation and Deactivation Button question

Billtcm

Newbie
Joined
Nov 23, 2004
Messages
92
Reaction score
0
I've been trying to make a button that when you press it, triggers something to move like a door opening and then when I press it again and only when I press it again to close. I've been able to get my door to open but not to close. I've also gotten it to open and then close after a few seconds even though I wasn't trying to get this. I've messed around with the flags and outputs but I can't seem to get anything. If anyone can help me I appreciate it
 
OnIn ->open the door
OnIn ->DisableMovement ->3 second wait

OnOut ->EnableMovement
 
Dude, I posted that w/out actually looking at the options...

After I looked at the trigger options, I gotta say this:

ARE YOU A MORON?

They have "Open" and "Close" built right in!!!

::sigh:: sorry, I am excitable.

For real though-
Output -> Target -> Input
OnIn -> Door01 -> Open
OnOut -> Door01 -> Close
 
Actually this doesn't work for me. When I put what you said in the button entity the door moves, sits for three seconds and then moves back with me only hitting the button once. Ohh and thanks for that lovely comment about me being a moron.
 
the moron comment was unnecessary.

Try going to the func_door option and setting the delay to -1.
 
HolySdrJR said:
Are you sure it doesn't work?

Here's my vmf, check it out...

Right click, save as... run in Hammer.

Your the moron Buddy, read what hes asking for! He wants to press it to open it and press it to close it. Ive done it with some of my doors after some messing around. If I remember right its like this -

onpressed>Door1>toggle

im sure thats what it is but ill have a look on my map to make sure. Make sure your door has the 'dont reset' tab ticked.
 
How am I the moron?

When I press the button, the door opens. It stays open forever... well, that is unless I press the button again- at which point it closes. That's what he wants? Right? Right.

Edit: And how many times do I have to apologize for the moron statement? I didn't mean to call him a moron, it was more of a joke. That's why, right below it, I posted "Sorry, I get excitable" or whatever it was I said... Geez, you guys are blowing things out of proportion...
 
Yup you were right Night-Wolf "OnIn>Door1>Toggle" worked just fine. Thanks for all the help guys I appreciate it :)
 
Back
Top