Multiple I/O Switch
Quote from y-aji on October 16, 2007, 8:21 amHey, I've looked around on the internet (admittedly somewhat quickly) and cant find anything that directly talks about solutions to multiple inputs for one output. I think this is self explanitory. I want a door to open up when both a switch and a combine ball receiver are activated.
I have a trigger_multiple placed that has a toggle on each input, but that doesn't seem to really be doing anything. The output has results to open the door, no prob. Any ideas?
Hey, I've looked around on the internet (admittedly somewhat quickly) and cant find anything that directly talks about solutions to multiple inputs for one output. I think this is self explanitory. I want a door to open up when both a switch and a combine ball receiver are activated.
I have a trigger_multiple placed that has a toggle on each input, but that doesn't seem to really be doing anything. The output has results to open the door, no prob. Any ideas?
Quote from espen180 on October 16, 2007, 8:51 amIf you use two logic_branch, one for the button and one for the Orb Catcher. Then use a logic_compare to open the door when both values are 1.
I think that's how you do it.
If you use two logic_branch, one for the button and one for the Orb Catcher. Then use a logic_compare to open the door when both values are 1.
I think that's how you do it.
Quote from y-aji on October 16, 2007, 9:39 amThank you.
Arg, it's still not quite working, though.Okay, i've set up the logic branches
Logic Branch 1
keyvalues:
name: door2_combineball_logic
init value: 0outputs:
Output: Ontrue
Target Entity: Door2_open
Target Input: SetValue
Parameter Override: 1
inputs:
Source: Door2_combine_ball
Output: OnStartTouch
My Input: SetValue
Parameter Override: 1Logic Branch 2
keyvalues:
name: door2_button_logic
init value: 0outputs:
Output: OnFalse
Target Entity: Door2_open
Target Input: SetValue
Parameter Override: 0Output: OnTrue
Target Entity: Door2_open
Target Input: SetValue
Parameter Override: 1inputs:
Source: Trigger_door2
Output: OnStartTouch
My Input: SetValue
Parameter Override: 1Source: Trigger_door2
Output: OnEndTouchAll
My Input: SetValue
Parameter Override: 0Then the logic compare just says when it hits 2, then run the door stuff.
Thank you.
Arg, it's still not quite working, though.
Okay, i've set up the logic branches
Logic Branch 1
keyvalues:
name: door2_combineball_logic
init value: 0
outputs:
Output: Ontrue
Target Entity: Door2_open
Target Input: SetValue
Parameter Override: 1
inputs:
Source: Door2_combine_ball
Output: OnStartTouch
My Input: SetValue
Parameter Override: 1
Logic Branch 2
keyvalues:
name: door2_button_logic
init value: 0
outputs:
Output: OnFalse
Target Entity: Door2_open
Target Input: SetValue
Parameter Override: 0
Output: OnTrue
Target Entity: Door2_open
Target Input: SetValue
Parameter Override: 1
inputs:
Source: Trigger_door2
Output: OnStartTouch
My Input: SetValue
Parameter Override: 1
Source: Trigger_door2
Output: OnEndTouchAll
My Input: SetValue
Parameter Override: 0
Then the logic compare just says when it hits 2, then run the door stuff.
Quote from espen180 on October 16, 2007, 10:18 amHave you tried the onEqual, onUnequal etc... outputs? I'm not too familiar with this entity myself, and only posted it as a possible solution.
Wait, if I were to do this, I'd start the button disabled, and just have the Orb Catcher enable it so that it could function, and thereby open the door.
Hope it's understandable.
Have you tried the onEqual, onUnequal etc... outputs? I'm not too familiar with this entity myself, and only posted it as a possible solution.
Wait, if I were to do this, I'd start the button disabled, and just have the Orb Catcher enable it so that it could function, and thereby open the door.
Hope it's understandable.
Quote from msleeper on October 16, 2007, 1:57 pmTry messing with the values some more, and if all else fails, try Espen's other idea. You won't get anywhere if you come back here and ask questions at the first sign of trouble. Experiment.
Try messing with the values some more, and if all else fails, try Espen's other idea. You won't get anywhere if you come back here and ask questions at the first sign of trouble. Experiment.
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.