Trouble with my secret door
Post Reply
Quote
Re: Trouble with my secret door
Posted by Ragnarocker on Thu Jan 27th at 2:02am 2005


I looked at the other posts on button doors but none of them are quite like mine. Basically the CS map I'm making, I decided to include like a trick door. I figured out how to get a button to open it but I can't get it to close. I want it to stay open until you press the button again, not just delay and close like it defaultly does. I suspect its the output I'm using or something to do with that. This is what it looks like:

OnPressed | bookshelf | Open | - | 0.0 | No
OnPressed | bookshelf | Close | - | 0.0 | No

How should I set this up? Btw it rotates, doesnt slide if that matters.




Quote
Re: Trouble with my secret door
Posted by Rof on Thu Jan 27th at 2:12am 2005


Check the func_button's "toggle" spawnflag. Then instead of" OnPressed" for the outputs, make the first one "OnIn" and the second one "OnOut".
[addsig]




Quote
Re: Trouble with my secret door
Posted by Bobv on Thu Jan 27th at 2:38am 2005


what i would do is simply check Toggle for door and then for button
OnPress > Door > Toggle




Quote
Re: Trouble with my secret door
Posted by Ragnarocker on Thu Jan 27th at 3:32am 2005


Thanks Bob, that worked perfect.





Post Reply