Re: func_button Toggle
Posted by hexpunK on
Sun Jun 29th 2008 at 6:39pm
15 posts
12 snarkmarks
Registered:
Mar 24th 2008
Occupation: Student, paperboy, Web Master, Amatuer M
Location: England
Ok, if you've read the description you'll know my question. I want to know how to make a func_button turn something on, then off after the second press.
Thanks for any help anyone gives me. And sorry if this has already been asked, but I could'nt find a topic or tut on it.
Re: func_button Toggle
Posted by hexpunK on
Mon Jun 30th 2008 at 4:38pm
15 posts
12 snarkmarks
Registered:
Mar 24th 2008
Occupation: Student, paperboy, Web Master, Amatuer M
Location: England
ah, thanks for the help with that, the second bit is the one im looking for, I have tried doing that, but because the buttons automatically reset themselves it causes a problem with mine. I should have added this on the first post but I am making a switch to toggle a force field (func_brush) on and off. I set the reset time to -1 to see if that would help but it just made the switch turn it on but not off leaving you stick inside the building XD. Is there a better entity for this by any chance.
I have tried the two button system, I even used lights to say on or off and entity that displays text at a certain point, I forget the name, but it was tiresome an gave away the buttons position, they are meant to be a little bit hidden.
Re: func_button Toggle
Posted by hexpunK on
Mon Jun 30th 2008 at 7:01pm
15 posts
12 snarkmarks
Registered:
Mar 24th 2008
Occupation: Student, paperboy, Web Master, Amatuer M
Location: England
ok my problem is fixed mow, for future reference I think I might make a smallish tutorial for it, or just post it here for someone else to sort out a tutorial.
When making a single button to toggle entities that don't support the toggle input, go into "flags" and check "Toggle", then just set the first thing you want to do in the toggle to "OnIn" then the second thing to "OnOut" rather like what Riven said.