two buttons one forcefield

WAR_Nuker

Newbie
Joined
Mar 29, 2005
Messages
627
Reaction score
0
ok i got two buttons that when pushed in they turn on the forcefield, and when pulled out turn off the forcefield. since there are two, i need them to both be in or out at the same time. so i used OnPressed Target (other button) input press with no delay. i assigned this to both buttons and made them target eachother. works ok. however, if you press them too fast things get kind of mixed up. eventually one button is pushed in and the other is out, and this makes getting the forcefield to work turn on and off kind of difficult. Any suggestions on how to fix this?
 
Have each button reset the other button?

that is, button 1 toggles the field and toggles button 2, and button 2 toggles the field and toggles button 1.
 
thats exactly what i have goin right now, only its not called toggle....its called "press" i need to know how to make it stop glitching when some douche bag decides to press it really fast (and i know its bound to happen)
 
hmmm you give me an idea....but im gonna have to reset my outputs a bit.
 
If they move in the same direction or don't move at all, just make them the same func_button.
 
Raeven0 said:
If they move in the same direction or don't move at all, just make them the same func_button.


Of course! That's the way to do it. Thanks Raeven.
 
arg.....i just got done making 4 total buttons....two turn it on....two turn it off. SHIT SHIT SHIT.

Edit: well i think im screwed anyways. they do go in different directions for one. say i have the toggle and dont move flags checked and i assign outputs that make the forcefield on when pushed in and off when pulled out, then its just all messed up (since it cant move). actually the end result earlier was MP crashing when i pushed one of the buttons. they also go in different directions so if i made them the same button they would go in the same direction, which is bad. i think this 4 button layout might be my best bet.
 
Then try this: make your buttons, instead of buttons, into unopenable func_doors. Surround each door with a nodraw-textured block, tie every block to the same func_button, and use that to affect the force field and the func_doors simultaneously.

You can even leave the original buttons as func_buttons as long as you make them untriggerable.
 
i do like my layout now, but i probably will use your method just to make my buttons movable.

Edit: wait wtf....they are individual buttons....i can just make their delay like .125 and cut the crap if i want the buttons to move. good nuff.
 
Back
Top