|
|
(74 intermediate revisions by 36 users not shown) |
Line 1: |
Line 1: |
| [http://rado.whacks.info/ rado] [http://picturesofplant.betrunk.info/ pictures of plant cells] [http://airplanecrash.injelly.info/ air plane crash] [http://xbox360.coolish.info/ xbox360] [http://flyringtone.shippon.info/ fly ringtone] [http://mrnainsituhybridization.whacks.info/ mrna in situ hybridization] [http://desdee.info/index7_250.html home] [http://videoporno.sinkhead.info/ video porno] [http://samplecommercial.betrunk.info/ sample commercial leases] [http://quote.desdee.info/ quote] [http://downloadfreeporn.coolish.info/ download free porn] [http://onlinecasinoblack.skunkish.info/ online casino black jack] [http://orderflexeril.betrunk.info/ order flexeril] [http://acidaminohelping.injelly.info/ acid amino helping liver] [http://cheaptramadol.whacks.info/ cheap tramadol] [http://americanmanseeking.footle.info/ american man seeking woman] [http://wordtwists.whacks.info/ word twists] [http://yaglaser.coolish.info/ yag laser] [http://position.injelly.info/ position] [http://yugiohcards.coolish.info/ yugioh cards] [http://1990audi90.shippon.info/ 1990 audi 90] [http://apuestasdefutbol.footle.info/ apuestas de futbol espanol] [http://dvdplayer.whacks.info/ dvd player] [http://journalwrite.injelly.info/ journal write topics] [http://bootcamp.betrunk.info/ boot camp] [http://editingpdffiles.stratose.info/ editing pdf files free software] [http://uniquegifts.stratose.info/ unique gifts] [http://lillynguyen.whacks.info/ lilly nguyen] [http://oceancitynew.shippon.info/ ocean city new jersey beach front rental] [http://bikehelmets.coolish.info/ bike helmets] [http://realestatehudson.whacks.info/ real estate hudson ma] [http://pornvideoclip.footle.info/ porn video clip] [http://patternformaking.sinkhead.info/ pattern for making neck tie] [http://pennstatefaculty.shippon.info/ penn state faculty staff club] [http://spiderman2cheat.whacks.info/ spider man 2 cheat codes for pc] [http://russianrailways.footle.info/ russian railways] [http://hpprinter.shippon.info/ hp printer] [http://datingpersonals.stratose.info/ dating personals] [http://cheapflightto.footle.info/ cheap flight to poland] [http://mp3softwaredownload.whacks.info/ mp3 software download] [http://worldsavingsbank.betrunk.info/ world savings bank california] [http://bestcellphonecompany.sinkhead.info/ best cell phone company] [http://weddingfloralcenterpieces.shippon.info/ wedding floral centerpieces] [http://miamifloridarealtor.betrunk.info/ miami florida realtor in] [http://iwanttobuyapc.sinkhead.info/ i want to buy a pc] [http://freeemail.skunkish.info/ free email] [http://leukaemiaandcancer.betrunk.info/ leukaemia and cancer] [http://whacks.info/index3_1000.html url] [http://setsqlupdate.shippon.info/ set sql update] [http://adultwebcamgirl.shippon.info/ adult web cam girl] [http://rolexreplicawatches.betrunk.info/ rolex replica watches] [http://educationalopportunities.whacks.info/ educational opportunities in india] [http://buyfioricetonline.stratose.info/ buy fioricet online] [http://stoveheatingelement.skunkish.info/ stove heating element] [http://youngdesigninc.injelly.info/ young design inc] [http://antiquediningroom.sinkhead.info/ antique dining room table] [http://penisgrowthpill.injelly.info/ penis growth pill] [http://basketballshoes.desdee.info/ basketball shoes] [http://budgetblinds.sinkhead.info/ budget blinds] [http://amortization.sinkhead.info/ amortization] [http://philadelphiaparking.skunkish.info/ philadelphia parking] [http://footle.info/ footle.info] [http://prepaidwireless.betrunk.info/ prepaid wireless] [http://offroad.shippon.info/ off road] [http://schoolwebgraphic.sinkhead.info/ school web graphic] [http://surgeonsmustbevery.footle.info/ surgeons must be very careful] [http://michaeljackson.injelly.info/ michael jackson dvd uk] [http://stratose.info/ stratose.info] [http://atlantafmradio.sinkhead.info/ atlanta fm radio] [http://amazoniamap.coolish.info/ amazonia map] [http://newcastlewaters.skunkish.info/ newcastle waters] [http://openuniversity.whacks.info/ open university] [http://interstatecredit.injelly.info/ interstate credit collection] [http://buyoxycontin.shippon.info/ buy oxycontin] [http://businesssoftware.desdee.info/ business software] [http://vabeachnews.sinkhead.info/ va beach news] [http://maidanglao.sinkhead.info/ mai dang lao] [http://moneymakingideas.betrunk.info/ money making ideas for 12 year old kids] [http://motorolaringtones.footle.info/ motorola ringtones] [http://professionalinstitute.sinkhead.info/ professional institute of the public service] [http://singlecurrency.coolish.info/ single currency debate] [http://painonhead.whacks.info/ pain on head] [http://freenude.betrunk.info/ free nude] [http://idaholibraryassociation.desdee.info/ idaho library association] [http://cheapcellphone.whacks.info/ cheap cell phone] [http://alaskaairlines.coolish.info/ alaska airlines] [http://kowloonhotel.skunkish.info/ kowloon hotel] [http://taxrefund.desdee.info/ tax refund] [http://freeemail.shippon.info/ free email] [http://statueliberty.injelly.info/ statue liberty] [http://icantdanceandi.desdee.info/ i cant dance and i cant sing] [http://grant.injelly.info/ grant] [http://whitepaperinternational.footle.info/ white paper international expansion] [http://totaledcars.footle.info/ totaled cars] [http://womenworking.footle.info/ women working out pictures] [http://tobeflushed.injelly.info/ to be flushed] [http://nickelback.desdee.info/ nickel back] [http://whycantibreathe.coolish.info/ why cant i breathe when ever] [http://washingtonpark.whacks.info/ washington park portland map] [http://supermarketcom.whacks.info/ super market com]
| | {{LanguageBar}} |
| {{wrongtitle|title=logic_relay}} | | {{TabsBar|main=s2|base=logic relay}} |
| ==Entity Description== | | {{This is a|logical entity|name=logic_relay|sprite=1}} |
| [[Image:{{PAGENAME}}.png|right]]
| | {{CD|CLogicRelay|file1=logicrelay.cpp}} |
| A message forwarder. Fires an [[#Outputs|OnTrigger output]] when triggered, and can be disabled to prevent forwarding outputs.
| | It is a Output forwarder, which can be used to fire many [[Inputs and Outputs#Outputs|output]]s at once from just one input, or, by being disabled, to break an I/O chain. It can also be very helpful for organization and keeping you from having to edit MANY instances of the same outputs, as opposed to just one. |
|
| |
|
| Useful as an intermediary between one entity and another for turning on or off an I/O connection, or as a container for holding a set of outputs that can be triggered from multiple places. Additionally, its Enabled/Disabled state can be used for conditional logic ("if, then" style logic).{{clr}}
| | After a <code>logic_relay</code> is triggered, it cannot be triggered again until all of its outputs are fired. This is useful for when a relay has a sequence of delayed outputs that shouldn't be repeated until the sequence is finished. This behavior can be disabled with the "Allow fast retrigger" spawnflag. |
|
| |
|
| ==Keyvalues== | | {{ent|logic_relay}} combines the functionality of {{ent|trigger_relay|game=Half-Life: Source}} and {{ent|multi_manager|game=Half-Life: Source}} from {{goldsrc|2}}. The older entities still exist in {{hls|2}}, but are deprecated. |
| | __NOTOC__ |
| | == Keyvalues == |
| | {{KV Targetname}} |
| | {{KV|Start Disabled|boolean|intn=StartDisabled|When disabled <code>OnTrigger</code> output won't fire}} |
|
| |
|
| * {{kv targetname}}
| | == Flags == |
| | {{fl|1|Only trigger once}} |
| | {{fl|2|Allow fast retrigger}} |
|
| |
|
| * {{kv enabledisable}}
| | == Inputs == |
| | {{I|Trigger|param=void|Trigger the relay, causing its OnTrigger output to fire if it is enabled.}} |
| | {{I|Enable|param=void|Allows the relay to fire the OnTrigger outputs after being disabled.}} |
| | {{I|Disable|param=void|Prevents the relay from firing OnTrigger outputs in response to Trigger inputs.}} |
| | {{I|Toggle|param=void|Toggle the relay between enabled and disabled.}} |
| | {{I|CancelPending|param=void|Cancel any events fired by this relay that are currently pending in the I/O event queue |
| | :{{bug|hidetested=1|If the caller of this input is the logic_relay itself it will break the I/O event queue which leads to a crash.}}}} |
| | {{I|EnableRefire|param=void|Automatically fired on a relay after any delayed outputs finish firing, allowing it to fire again.|nofgd=1}} |
| | {{I|TriggerWithParameter|param=variant|only={{mapbase}}|Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.}} |
|
| |
|
| ==Flags== | | == Outputs == |
| | {{O|OnSpawn|param=void|ac-is-this=1|Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.{{note|Every level load (including save loads!) triggers this output, unless "Fire once only" is checked.}}}} |
| | {{O|OnTrigger|param=void|activator = activator of Trigger input|Fired when the relay is triggered. If the relay is set to only trigger once, it will delete itself after firing this output.}} |
| | {{O|OnTriggerParameter|param=variant|only={{mapbase}}|activator = activator of TriggerWithParameter input|Fired when the relay is triggered with a parameter. If the relay is set to only trigger once, it will delete itself after firing this output.}} |
|
| |
|
| * 1 : '''Only trigger once''' (Default Checked)
| | == See Also == |
| : If checked, this entity starts on.
| | * {{ent|logic_case}} |
| * 2 : '''Allow fast retrigger''' (Default Unchecked) | |
| : Allows fast retriggering.
| |
|
| |
|
| ==Inputs==
| | [[Category:IO System]] |
| | |
| * {{i targetname}}
| |
| | |
| * {{i enabledisable}}
| |
| | |
| * '''Trigger'''
| |
| : Trigger the relay, causing its OnTrigger output to fire if it is enabled.
| |
| | |
| * '''Toggle'''
| |
| : Toggle the relay between enabled and disabled.
| |
| * '''CancelPending'''
| |
| : Cancel any events fired by this relay that are currently pending in the I/O event queue.
| |
| | |
| ==Outputs==
| |
| | |
| * {{o targetname}}
| |
| | |
| * '''OnTrigger'''
| |
| : Fired when the relay is triggered. {{activator|activator}}
| |
| * '''{{ep1 add|OnSpawn}}'''
| |
| : Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.
| |
| | |
| [[Category:Entities]] | |
logic_relay
is a logical entity available in all
Source games.
It is a Output forwarder, which can be used to fire many outputs at once from just one input, or, by being disabled, to break an I/O chain. It can also be very helpful for organization and keeping you from having to edit MANY instances of the same outputs, as opposed to just one.
After a logic_relay
is triggered, it cannot be triggered again until all of its outputs are fired. This is useful for when a relay has a sequence of delayed outputs that shouldn't be repeated until the sequence is finished. This behavior can be disabled with the "Allow fast retrigger" spawnflag.
logic_relay combines the functionality of trigger_relay and multi_manager from
GoldSrc. The older entities still exist in
Half-Life: Source, but are deprecated.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
or target
).
Also displayed in Hammer's 2D views and Entity Report.
- Start Disabled (StartDisabled) <boolean>
- When disabled
OnTrigger
output won't fire
Flags
- Only trigger once : [1]
- Allow fast retrigger : [2]
Inputs
- Trigger <void>
- Trigger the relay, causing its OnTrigger output to fire if it is enabled.
- Enable <void>
- Allows the relay to fire the OnTrigger outputs after being disabled.
- Disable <void>
- Prevents the relay from firing OnTrigger outputs in response to Trigger inputs.
- Toggle <void>
- Toggle the relay between enabled and disabled.
- CancelPending <void>
- Cancel any events fired by this relay that are currently pending in the I/O event queue
Bug:If the caller of this input is the logic_relay itself it will break the I/O event queue which leads to a crash.
- EnableRefire <void> !FGD
- Automatically fired on a relay after any delayed outputs finish firing, allowing it to fire again.
- TriggerWithParameter <variantRedirectInput/variant> (only in
)
- Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.
Outputs
- OnSpawn <void>
- !activator = !caller = this entity
Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.
Note:Every level load (including save loads!) triggers this output, unless "Fire once only" is checked.
- OnTrigger <void>
- !activator = activator of Trigger input
!caller = this entity
Fired when the relay is triggered. If the relay is set to only trigger once, it will delete itself after firing this output.
- OnTriggerParameter <variantRedirectOutput/variant> (only in
)
- !activator = activator of TriggerWithParameter input
!caller = this entity
Fired when the relay is triggered with a parameter. If the relay is set to only trigger once, it will delete itself after firing this output.
See Also