Trigger_relay. Created 20 years ago2003-11-27 23:11:04 UTC by Marlborometal Marlborometal

Created 20 years ago2003-11-27 23:11:04 UTC by Marlborometal Marlborometal

Posted 20 years ago2003-11-27 23:11:04 UTC Post #5848
This is a really stupid question...
I?ve looked in the HL entity guide but since I don?t know the meaning of the word "Relay" and the definition of "trigger_relay" has "relay" as keyword to it... What is a trigger_relay?. What uses it has?. How do I set them un and why?.
Thanks.
Posted 20 years ago2003-11-28 03:42:38 UTC Post #5859
It's kinda like a multimanager. Only, uh, it only does one thing :
You can use the KillTarget field to destroy entities easily.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 20 years ago2003-11-28 23:39:43 UTC Post #5981
Guess I?ll never use this relay thing so. I like multimanagers :).
Posted 20 years ago2003-11-29 11:46:05 UTC Post #6001
Trigger relays can be used to great effect because of their Trigger to send option (or something like that ;) )

say you want to make a light, and one button turns it on Only, and the other button turns it off only - this is very easy with trigger_relays
Posted 20 years ago2003-11-29 12:25:34 UTC Post #6007
Really???!!!. How do I set this things up??.
Posted 20 years ago2003-11-30 05:02:56 UTC Post #6073
As kol said, easy! You have the two buttons each target a diffirent relay, which intern target the light. One relay you set the trigger state to "ON", and the other to "OFF", so one relay can only turn the light on, and the other can only turn it off!

It would look like this:

Button1 -> trigger_relay1 (triggerstate=OFF) -> light (turns OFF)
Button2 -> trigger_relay2 (triggerstate=ON) -> light (turns ON)
Posted 20 years ago2003-12-01 06:00:31 UTC Post #6182
This is also useful if you have several triggers that are supposed to turn something ON, instead of toggling it (for example a "security light" that turns on if someone is near or does something else), without using kill target etc)
You must be logged in to post a response.