What are logic_relays for?
I would like to make a point that, in the case of using multiple buttons to open a single door, a logic_relay is not the best solution. You would want to look into logic_branch and logic_branch_listener.
It's also a matter of neatness, so your entities aren't super cluttered with I/O. Using your example, when I push the button not only do I have the door open, but I also play a sound and toggle indicator strips and do any number of other things. I can put all of these effects into a single logic_relay, and tell my button to Trigger the relay, instead of each of the individual Outputs.
Just like math_counter's logic_case's and logic_timer's: these are one of the most common entities you would be using for maps with loads of I/O and scripting.
chickenmobile wrote:
I mainly use them to cut down the I/O clutter when you need a button or a trigger to fire multiple times and do the same thing...
Yup. It essentially does for source mapping what subroutines do for programming languages.
msleeper wrote:
It's also a matter of neatness, so your entities aren't super cluttered with I/O. Using your example, when I push the button not only do I have the door open, but I also play a sound and toggle indicator strips and do any number of other things. I can put all of these effects into a single logic_relay, and tell my button to Trigger the relay, instead of each of the individual Outputs.
Hmm, in the case of a button simply opening a door or similar cases, it would just add complexity to use a relay. So I'd rather say it's a matter of modularity rather than neatness.
Sliipperi wrote:
You guys are so wise. Thanks for the info - I think I'm gonna use them from now on.
