User Inputs and Outputs: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(why addoutput?)
 
(65 intermediate revisions by 40 users not shown)
Line 1: Line 1:
[http://sujowirlo.fhpanel.com/terra-firma.html terra firma] [http://tibuogoz.hostinggratisbrasil.com/html/inland-homes.html inland homes] [http://yukohiatt.infernohost.net/selling-your.html selling your home] [http://zzizlita.hostinggratisbrasil.com/static-shock-hentai.html static shock hentai] [http://laniwgi.fhpanel.com/educational-opportunities.htm educational opportunities in india] [http://jacqualineblay.friko.pl/text/tiffany-nude.html tiffany nude] [http://tibuogoz.hostinggratisbrasil.com/html/viking-ship.html viking ship] [http://laniwgi.fhpanel.com/tropical-beach.htm tropical beach] [http://pianoislove.ourprofile.net/directory/mont-blanc.html mont blanc] [http://kwowukxa.hostinggratisbrasil.com/atv-brush-guards.html atv brush guards] [http://ileenbabb.totalh.com/data/johnson-city-press.html johnson city press] [http://temptedlush.interfree.it/html/illuminati-who.html illuminati who are] [http://goraina.interfree.it/facial-blast.html facial blast] [http://chelsxd.ourprofile.net/bee-stings.html bee stings] [http://fowapvu.fhpanel.com/html/virginia-unauthorized.htm virginia unauthorized practice of law] [http://paulareimann.infernohost.net/this-is-a-song.htm this is a song for the broken hearted] [http://womamalimi.hostinggratisbrasil.com/electronic-ab-belts.html electronic ab belts] [http://yukohiatt.infernohost.net/wasps.html wasps] [http://jeffieseab.fhpanel.com/styles/anna-benson.html anna benson] [http://lowukibiwo.fhpanel.com/musica.html musica] [http://meridemko.indo.tc/view/broke.html broke] [http://menkeydarren.ayudauni.net/honolulu.html honolulu] [http://lowukibiwo.fhpanel.com/sexy-g-string.html sexy g string] [http://mayrakoontz.ourprofile.net/description/best-mortgage-rates.html best mortgage rates] [http://yukohiatt.infernohost.net/arizona-vacations.html arizona vacations] [http://dungkinslow.infernohost.net/directory/runescape-cheat.html runescape cheat program] [http://missmoxr.ayudauni.net/sassafras.html sassafras] [http://elizsteinberg.totalh.com/styles/girls-butts.html girls butts] [http://kwowukxa.hostinggratisbrasil.com/girls-kiss-other.html girls kiss other girls] [http://moniquemoye.freeweb7.com/data/essential-oils.htm essential oils online] [http://kiwizzo.indo.tc/roseola.htm roseola] [http://doreengilleland.totalh.com/pages/kidney-infection.html kidney infection] [http://dungkinslow.infernohost.net/directory/corporate-email.html corporate email hosting] [http://ramonapasko.friko.pl/wiki/o-zone.html o zone] [http://jacqualineblay.friko.pl/text/lo-que-paso-paso.html lo que paso paso] [http://tibuogoz.hostinggratisbrasil.com/html/avg-anti-virus.html avg anti virus] [http://menkeydarren.ayudauni.net/aubrey-miles.html aubrey miles] [http://temptedlush.interfree.it/html/nasty-moms.html nasty moms] [http://alejandrinawhip.ourprofile.net/view/bombay-company.html bombay company] [http://paulareimann.infernohost.net/amp-meter-dc.htm amp meter dc] [http://ramonapasko.friko.pl/wiki/pornstarbook.html pornstarbook] [http://quiris.interfree.it/inside-your-heaven.html inside your heaven] [http://laniwgi.fhpanel.com/consolidation.htm consolidation debt] [http://bernadinetrotta.indo.tc/yeast-infection.html yeast infection home remedy] [http://erabrust.totalh.com/small/jpl.html jpl] [http://erabrust.totalh.com/small/temperature.html temperature] [http://mayrakoontz.ourprofile.net/description/transformers.html transformers] [http://missmoxr.ayudauni.net/invitaciones-para.html invitaciones para quince anos] [http://fowapvu.fhpanel.com/html/fuck-slut.htm fuck slut] [http://zzizlita.hostinggratisbrasil.com/shu-qi-gallery.html shu qi gallery sex] [http://chelsxd.ourprofile.net/prilosec.html prilosec] [http://alejandrinawhip.ourprofile.net/view/travertine.html travertine] [http://sujowirlo.fhpanel.com/alica-keys.html alica keys] [http://erabrust.totalh.com/small/events.html events] [http://pianoislove.ourprofile.net/directory/hung-guys.html hung guys] [http://mayrakoontz.ourprofile.net/description/yu-gi-oh.html yu-gi-oh] [http://zilivrenglaur.ayudauni.net/star-wars.html star wars] [http://zherezx.ayudauni.net/articles/naked-man.html naked man] [http://tdtuamo.hostinggratisbrasil.com/resources/legal-probation.html legal probation periods for employment] [http://lowukibiwo.fhpanel.com/goalie-gloves.html goalie gloves] [http://sujowirlo.fhpanel.com/disney-movies.html disney movies] [http://jacqualineblay.friko.pl/text/girls-giving.html girls giving oral sex] [http://ileenbabb.totalh.com/data/budget-car-rental.html budget car rental] [http://theresekulik.totalh.com/pro-audio.html pro audio] [http://womamalimi.hostinggratisbrasil.com/hard-ass.html hard ass] [http://bernadinetrotta.indo.tc/their-eyes-were.html their eyes were watching god] [http://bernadinetrotta.indo.tc/georgia-real-estate.html georgia real estate] [http://tucabello.infernohost.net/description/introduction-medicinal.html introduction medicinal plant] [http://missmoxr.ayudauni.net/kelly-ripa-in.html kelly ripa in a swimsuit] [http://zzizlita.hostinggratisbrasil.com/literotica-free.html literotica free sex stories] [http://aubreygildersle.freeweb7.com/alaskan-brown-bear.html alaskan brown bear hunts] [http://womamalimi.hostinggratisbrasil.com/free-lolita-porn.html free lolita porn] [http://fowapvu.fhpanel.com/html/juggy.htm juggy] [http://soonweddington.infernohost.net/content/sammy-winward.htm sammy winward] [http://kiwizzo.indo.tc/nancy-travis.htm nancy travis] [http://dungkinslow.infernohost.net/directory/incest-mother.html incest mother son] [http://erabrust.totalh.com/small/aim-buddy-list.html aim buddy list sign] [http://selinaswigert.friko.pl/pages/art-history.html art history] [http://georgeswanigan.freeweb7.com/small/the-movie-fear.html the movie fear of the dark] [http://chelsxd.ourprofile.net/everyone-has-aids.html everyone has aids] [http://zzizlita.hostinggratisbrasil.com/brianna-blaze.html brianna blaze] [http://zherezx.ayudauni.net/articles/real-estate-memphis.html real estate memphis tn] [http://danielantonio.freeweb7.com/lib/central-air-conditioners.html central air conditioners] [http://selinaswigert.friko.pl/pages/free-teen-sex.html free teen sex pictures] [http://temptedlush.interfree.it/html/game-cracks.html game cracks] [http://jacqualineblay.friko.pl/text/united-parcel.html united parcel service] [http://lowukibiwo.fhpanel.com/drawn-sex-comics.html drawn sex comics] [http://lieselottehasse.infernohost.net/sucking-hard.html sucking hard] [http://kwowukxa.hostinggratisbrasil.com/free-pc-download.html free pc download games] [http://aubreygildersle.freeweb7.com/popup-blockers.html popup blockers] [http://womamalimi.hostinggratisbrasil.com/distance-between.html distance between cities] [http://moniquemoye.freeweb7.com/data/service-magazine.htm service magazine] [http://temptedlush.interfree.it/html/bukkake-party.html bukkake party] [http://dungkinslow.infernohost.net/directory/kansas-secretary.html kansas secretary state state] [http://tucabello.infernohost.net/description/water-features.html water features pond fountains] [http://sujowirlo.fhpanel.com/maria-takagi.html maria takagi] [http://alejandrinawhip.ourprofile.net/view/sasktelnet.html sasktel.net] [http://yukohiatt.infernohost.net/nina-shoes.html nina shoes] [http://tibuogoz.hostinggratisbrasil.com/html/girls-nude-in.html girls nude in public] [http://cacophonysaint.w8w.pl/html/avg-anti-virus-free.htm avg anti virus free edition] [http://lowukibiwo.fhpanel.com/printable-mazes.html printable mazes] [http://corinaperras.totalh.com/bike-girls.htm bike girls] [http://womamalimi.hostinggratisbrasil.com/hot-mature.html hot mature] [http://themusecalliope.interfree.it/blog/ragtime.htm ragtime] [http://quiris.interfree.it/prelude-music.html prelude music] [http://erabrust.totalh.com/small/shaved-labia.html shaved labia] [http://kwowukxa.hostinggratisbrasil.com/petite-girls.html petite girls in bikinis] [http://tucabello.infernohost.net/description/daytona-beach-girls.html daytona beach girls] [http://georgeswanigan.freeweb7.com/small/ford-falcon-xb.html ford falcon xb] [http://zilivrenglaur.ayudauni.net/masturbation-club.html masturbation club] [http://soonweddington.infernohost.net/content/sebring-sedan.htm sebring sedan] [http://tucabello.infernohost.net/description/analyzer-frequency.html analyzer frequency low spectrum] [http://lowukibiwo.fhpanel.com/star-ocean-blue.html star ocean blue] [http://moniquemoye.freeweb7.com/data/homosexuals.htm homosexuals] [http://argentinaperale.infernohost.net/darth-revan.html darth revan] [http://meridemko.indo.tc/view/serenity-movie.html serenity movie] [http://theresekulik.totalh.com/cape-cod-rental.html cape cod rental] [http://paulareimann.infernohost.net/yesmrlopez.htm yesmrlopez] [http://pianoislove.ourprofile.net/directory/obesity-help.html obesity help] [http://cacophonysaint.w8w.pl/html/used-camper-dealer.htm used camper dealer] [http://helanur.interfree.it/blog/hitler.htm hitler] [http://tibuogoz.hostinggratisbrasil.com/html/pebbles.html pebbles] [http://erabrust.totalh.com/small/big-tit-bikini.html big tit bikini babes] [http://menkeydarren.ayudauni.net/little-trouble.html little trouble maker] [http://georgeswanigan.freeweb7.com/small/ccna.html ccna] [http://zzizlita.hostinggratisbrasil.com/backpacking.html backpacking] [http://lieselottehasse.infernohost.net/silk-n-lace.html silk n lace] [http://paulareimann.infernohost.net/adult-halloween.htm adult halloween costume ideas] [http://sujowirlo.fhpanel.com/ombudsman-long.html ombudsman long term care] [http://laniwgi.fhpanel.com/north-carolina-beaches.htm north carolina beaches] [http://dungkinslow.infernohost.net/directory/teen-puffy-nipples.html teen puffy nipples] [http://temptedlush.interfree.it/html/ginger-pubes.html ginger pubes] [http://danielantonio.freeweb7.com/lib/digimon-mp3.html digimon mp3] [http://romainehibbler.totalh.com/text/keller-isd.html keller isd] [http://clarinepals.totalh.com/directory/david-letterman.htm david letterman] [http://soonweddington.infernohost.net/content/huge-cunt-hole.htm huge cunt hole] [http://lowukibiwo.fhpanel.com/atlantic-luggage.html atlantic luggage] [http://yukohiatt.infernohost.net/php-comments.html php comments script] [http://cordiademby.w8w.pl/resources/interest-only-loan.html interest only loan] [http://quiris.interfree.it/gagged-damsels.html gagged damsels] [http://argentinaperale.infernohost.net/pussy-cock-torture.html pussy cock torture] [http://lieselottehasse.infernohost.net/fuck-movies.html fuck movies] [http://quiris.interfree.it/free-pink-pussy.html free pink pussy] [http://ileenbabb.totalh.com/data/management-consulting.html management consulting] [http://tucabello.infernohost.net/description/evinrude-outboard.html evinrude outboard motors] [http://zilivrenglaur.ayudauni.net/jjjs.html jjjs] [http://georgeswanigan.freeweb7.com/small/fake-louis-vuitton.html fake louis vuitton] [http://missmoxr.ayudauni.net/celebrity-lesbian.html celebrity lesbian scenes] [http://tucabello.infernohost.net/description/ecard-thank.html ecard thank you] [http://goraina.interfree.it/freaky-shit.html freaky shit] [http://jeffieseab.fhpanel.com/styles/prostate-massage.html prostate massage] [http://bernadinetrotta.indo.tc/the-masters.html the masters] [http://jeffieseab.fhpanel.com/styles/eulogy.html eulogy] [http://paulareimann.infernohost.net/cheap-phentermine.htm cheap phentermine online] [http://menkeydarren.ayudauni.net/evaluation-program.html evaluation program review technique] [http://kwowukxa.hostinggratisbrasil.com/levaquin.html levaquin] [http://armandaabbott.totalh.com/comments/housewife-pics.html housewife pics] [http://temptedlush.interfree.it/html/how-to-shave-a.html how to shave a pussy] [http://kiwizzo.indo.tc/shade-plants.htm shade plants] [http://sujowirlo.fhpanel.com/ball-torture.html ball torture] [http://menkeydarren.ayudauni.net/nate-berkus.html nate berkus] [http://pianoislove.ourprofile.net/directory/work-out.html work out] [http://danielantonio.freeweb7.com/lib/swinger-video.html swinger video wife] [http://sujowirlo.fhpanel.com/cat-scratch-fever.html cat scratch fever] [http://lieselottehasse.infernohost.net/fucking-older.html fucking older men] [http://armandaabbott.totalh.com/comments/glasgow-ky.html glasgow ky] [http://helanur.interfree.it/blog/stone-age.htm stone age] [http://daniellegowins.totalh.com/text/edgar-allan-poe.html edgar allan poe] [http://tdtuamo.hostinggratisbrasil.com/resources/compact-flash.html compact flash memory] [http://cordiademby.w8w.pl/resources/giving-head-advice.html giving head advice] [http://erabrust.totalh.com/small/sister-sex.html sister sex] [http://cordiademby.w8w.pl/resources/mass-lottery.html mass lottery] [http://ramonapasko.friko.pl/wiki/strap-on-sex.html strap on sex female to male] [http://meridemko.indo.tc/view/martial-law.html martial law] [http://alejandrinawhip.ourprofile.net/view/john-butler-trio.html john butler trio] [http://selinaswigert.friko.pl/pages/tampa-florida-attraction.html tampa florida attraction] [http://jacqualineblay.friko.pl/text/teenie-models.html teenie models] [http://armandaabbott.totalh.com/comments/saks-fifth-avenue.html saks fifth avenue coupons] [http://cacophonysaint.w8w.pl/html/bouncy-balls.htm bouncy balls] [http://romainehibbler.totalh.com/text/kato-bbs.html kato bbs] [http://moniquemoye.freeweb7.com/data/act-drum-first-set.htm act drum first set] [http://tdtuamo.hostinggratisbrasil.com/resources/sturgis.html sturgis] [http://lieselottehasse.infernohost.net/nags-head-nc-realty.html nags head nc realty] [http://sujowirlo.fhpanel.com/audio-search.html audio search] [http://dungkinslow.infernohost.net/directory/child-porn-pics.html child porn pics] [http://kiwizzo.indo.tc/delirious.htm delirious] [http://pianoislove.ourprofile.net/directory/home-gyms.html home gyms] [http://alejandrinawhip.ourprofile.net/view/women-of-faith.html women of faith] [http://tdtuamo.hostinggratisbrasil.com/resources/harborfreight.html harborfreight] [http://erabrust.totalh.com/small/home-money-making.html home money making business opportunity] [http://moniquemoye.freeweb7.com/data/tilt-ya-head.htm tilt ya head back] [http://cacophonysaint.w8w.pl/html/soil-pollution.htm soil pollution] [http://zherezx.ayudauni.net/articles/myrtle-beach.html myrtle beach] [http://moniquemoye.freeweb7.com/data/gay-women.htm gay women] [http://aubreygildersle.freeweb7.com/julie-tawney-mpeg.html julie tawney mpeg] [http://aubreygildersle.freeweb7.com/shady.html shady] [http://kiwizzo.indo.tc/exposed-women.htm exposed women] [http://corinaperras.totalh.com/busty-wife.htm busty wife] [http://elizsteinberg.totalh.com/styles/softice-download.html softice download] [http://laniwgi.fhpanel.com/picture-of-computer.htm picture of computer networking]
{{LanguageBar}}
The '''FireUser1-4''' inputs and '''OnUser1-4''' outputs are available on every entity that can receive [[Inputs and Outputs]]. This set of controls are specially linked to work together. Although they are not used very commonly, User inputs and outputs can be very powerful and make certain tasks far easier to accomplish.
The '''FireUser1-4''' inputs and '''OnUser1-4''' outputs are available on every entity that can receive [[Inputs_and_Outputs|Inputs and Outputs]].<br>
This set of controls are specially linked to work together. Entities receiving the "FireUserN" input will fire its corresponding "OnUserN" output.<br>
Essentially, "FireUserN" and "OnUserN" are exactly the same as "Trigger" and "OnTrigger" that a [[logic_relay]] has. Except that you have four of them at once, in every single entity, and they work independent and unrelated to each other.<br>
Valve usually uses this to have one entity trigger the same output to multiple entities, while achieving different outcomes every time because each target tells itself what to do.<br>
One could also use it to avoid using logic_relay when the target should be triggered by multiple entities at different times. As each triggering entity directly tells the target to trigger itself.


The '''FireUser''N''''' input simply causes the corresponding '''OnUser''N''''' output on the same entity to fire. These are useful for forwarding messages through an entity where the desired target is known to the forwarding entity, but not to the firing entity.
{{Note|These outputs will fire even on a disabled entity.}}
{{Warning|Using FireUserX via an output that automatically sends a parameter (math_counter's OnGetValue for example) can cause an error and won't fire it properly. That is because FireUserX was coded (possibly by mistake) to accept a string parameter, but the parameter sent by the math_counter is a number. Make sure to specify dummy parameter in such cases.}}


For example, say you have three trains moving along the same set of [[path_track]]s. Each train has a glowing [[env_sprite]] parented to it, and on one path_track you want to turn off the sprite on whatever train has just passed. The problem is that the path_track doesn't know which train has just passed, so you can't connect the "OnPass" output to the right one. So, you solve this by connecting the path_track's "OnPass" output to the <code>[[!activator]]</code> (the train) '''FireUser1''' input, and then connect each train's '''OnUser1''' input to turn off their parented sprite.
==Example - Quicker Workflow==
The map [[d2_coast_08]] contains a [[logic_auto]] that fires the "FireUser1" output to three [[npc_seagull]] entities named "Seagull". Those then trigger themselves to fly to a unique destination, at different times.


In the past, you could hack around this kind of thing by putting a [[trigger_multiple]] for every train on the path_track, set them to only trigger when the matching train touches them, and use the "StartTouch" output to turn off the sprite. Unfortunately, that method doesn't scale to large numbers of trains (as seen in the Citadel section of Half-Life 2).
The logic_auto firing as follows:
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io11.png]] || OnMapSpawn || seagull || FireUser1 || &nbsp; || 0 || No
|}
 
Each of the npc_seagull entities then fire this output, but with different destination name and delay.
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io12.png]] || OnUser1 || [[Targetname#Keywords|!self]] || FlyAway || bird_flightpath_a_48 || 0 || No
|}
 
One may look at this and think this is silly, as every single output would still need to be defined separately and in three different entities no less.<br>
Surely it would have been easier to just name the seagulls unique names and then let the logic_auto tell each bird to fly anywhere. But you'd be wrong. This is faster to build.
 
Without FireUserN, the mapper would need to place multiple birds and take the time to give them all unique names. Then the logic_auto's outputs need to be set up for every bird one after another by setting Targetname and Parameter for the destination.<br>
With FireUserN, the mapper needs to set up one single output in the logic_auto to fire to all bird entities at once because they have the same name. Then set up a single bird with its outputs and copy paste it somewhere else. Since every copy has the same name, it already is targeted by the logic_auto, so all that is needed now is to change the destination name in the parameter field. Which can be done quickly if the mapper doesn't close the parameter window.
 
===Another Example===
The map [[d3_citadel_01]] contains multiple [[func_tracktrain]] (zapperpod1_train) with a [[func_door_rotating]] (zapperpod1_rotator) as a child. The func_tracktrains move along a [[path_track]].<br>
The vmf of this map can be found in "sourcesdk_content\hl2\mapsrc\sdk_d3_citadel_01.vmf".<br>
 
One of the path_track entities, specifically "pod_bay_zapper_track4", the following relevant outputs:
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io12.png]] || OnPass || !activator || Stop ||  || 0.00 || No
|-
| [[File:Io12.png]] || OnPass || !activator || FireUser1 ||  || 0.10 || No
|}
 
Once a func_tracktrain passes this path_track named "pod_bay_zapper_track4", the path_track causes the activator, which in this case are all the func_tracktrains, to stop right there and then fire "FireUser1<br>
Each "func_tracktrain" the following OnUserN outputs:
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io11.png]] || OnUser1 || zapperpod1_rotator || Open ||  || 0.00 || No
|-
| [[File:Io11.png]] || OnUser1 || zapperpod1_rotator || Close ||  || 5.00 || No
|-
| [[File:Io11.png]] || OnUser1 || playerpod1_vehicle|| Open ||  || 1.00 || No
|-
| [[File:Io11.png]] || OnUser1 || playerpod1_vehicle|| Close ||  || 4.00 || No
|}
 
This whole setup essentially tells every single func_tracktrain to stop, turn the pod around and open its doors. Another entity will cause the pod to continue moving, but that is not relevant to this example of User inputs.<br>
This speeds up workflow as well, as the mapper needs to set this up once, and then just rename the target entities by changing the number on them after pasting them multiple times.
 
==Example - Entities triggering themselves==
In some occasions, an entity might be more convenient to trigger itself, rather than having to keep checking on a logic_relay's outputs. One stellar example of that is [[env_tonemap_controller]].<br>
Usually a [[logic_auto]] would set various settings of the tonemap controller on map spawn. But it feels a little backwards to have the env_tonemap_controller be in the map, but all the settings for it are stored somewhere else<br>
So for convenience's sake, one might want a logic_auto that fires "FireUser1" to the env_tonemap_controller, which then fires "OnUser1" to itself for all the things it needs to do.
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io12.png]] || OnUser1 || !self || SetTonemapRate || 0.25 || 0.00 || No
|-
| [[File:Io12.png]] || OnUser1 || !self || SetBloomScale|| 0.2 || 0.00 || No
|-
| [[File:Io12.png]] || OnUser1 || !self || SetAutoExposureMin || 0.4 || 0.00 || No
|-
| [[File:Io12.png]] || OnUser1 || !self || SetAutoExposureMax || 1 || 0.00 || No
|}
 
== See also ==
* [[AddOutput]]


[[Category:Level Design]]
[[Category:Level Design]]
[[Category:IO System]]
[[Category:English]]

Latest revision as of 03:50, 26 April 2025

English (en)Русский (ru)中文 (zh)Translate (Translate)

The FireUser1-4 inputs and OnUser1-4 outputs are available on every entity that can receive Inputs and Outputs.
This set of controls are specially linked to work together. Entities receiving the "FireUserN" input will fire its corresponding "OnUserN" output.
Essentially, "FireUserN" and "OnUserN" are exactly the same as "Trigger" and "OnTrigger" that a logic_relay has. Except that you have four of them at once, in every single entity, and they work independent and unrelated to each other.
Valve usually uses this to have one entity trigger the same output to multiple entities, while achieving different outcomes every time because each target tells itself what to do.
One could also use it to avoid using logic_relay when the target should be triggered by multiple entities at different times. As each triggering entity directly tells the target to trigger itself.

Note.pngNote:These outputs will fire even on a disabled entity.
Warning.pngWarning:Using FireUserX via an output that automatically sends a parameter (math_counter's OnGetValue for example) can cause an error and won't fire it properly. That is because FireUserX was coded (possibly by mistake) to accept a string parameter, but the parameter sent by the math_counter is a number. Make sure to specify dummy parameter in such cases.

Example - Quicker Workflow

The map d2_coast_08 contains a logic_auto that fires the "FireUser1" output to three npc_seagull entities named "Seagull". Those then trigger themselves to fly to a unique destination, at different times.

The logic_auto firing as follows:

My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnMapSpawn seagull FireUser1   0 No

Each of the npc_seagull entities then fire this output, but with different destination name and delay.

My Output > Target Entity Target Input Parameter Delay Only Once
Io12.png OnUser1 !self FlyAway bird_flightpath_a_48 0 No

One may look at this and think this is silly, as every single output would still need to be defined separately and in three different entities no less.
Surely it would have been easier to just name the seagulls unique names and then let the logic_auto tell each bird to fly anywhere. But you'd be wrong. This is faster to build.

Without FireUserN, the mapper would need to place multiple birds and take the time to give them all unique names. Then the logic_auto's outputs need to be set up for every bird one after another by setting Targetname and Parameter for the destination.
With FireUserN, the mapper needs to set up one single output in the logic_auto to fire to all bird entities at once because they have the same name. Then set up a single bird with its outputs and copy paste it somewhere else. Since every copy has the same name, it already is targeted by the logic_auto, so all that is needed now is to change the destination name in the parameter field. Which can be done quickly if the mapper doesn't close the parameter window.

Another Example

The map d3_citadel_01 contains multiple func_tracktrain (zapperpod1_train) with a func_door_rotating (zapperpod1_rotator) as a child. The func_tracktrains move along a path_track.
The vmf of this map can be found in "sourcesdk_content\hl2\mapsrc\sdk_d3_citadel_01.vmf".

One of the path_track entities, specifically "pod_bay_zapper_track4", the following relevant outputs:

My Output > Target Entity Target Input Parameter Delay Only Once
Io12.png OnPass !activator Stop 0.00 No
Io12.png OnPass !activator FireUser1 0.10 No

Once a func_tracktrain passes this path_track named "pod_bay_zapper_track4", the path_track causes the activator, which in this case are all the func_tracktrains, to stop right there and then fire "FireUser1
Each "func_tracktrain" the following OnUserN outputs:

My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnUser1 zapperpod1_rotator Open 0.00 No
Io11.png OnUser1 zapperpod1_rotator Close 5.00 No
Io11.png OnUser1 playerpod1_vehicle Open 1.00 No
Io11.png OnUser1 playerpod1_vehicle Close 4.00 No

This whole setup essentially tells every single func_tracktrain to stop, turn the pod around and open its doors. Another entity will cause the pod to continue moving, but that is not relevant to this example of User inputs.
This speeds up workflow as well, as the mapper needs to set this up once, and then just rename the target entities by changing the number on them after pasting them multiple times.

Example - Entities triggering themselves

In some occasions, an entity might be more convenient to trigger itself, rather than having to keep checking on a logic_relay's outputs. One stellar example of that is env_tonemap_controller.
Usually a logic_auto would set various settings of the tonemap controller on map spawn. But it feels a little backwards to have the env_tonemap_controller be in the map, but all the settings for it are stored somewhere else
So for convenience's sake, one might want a logic_auto that fires "FireUser1" to the env_tonemap_controller, which then fires "OnUser1" to itself for all the things it needs to do.

My Output > Target Entity Target Input Parameter Delay Only Once
Io12.png OnUser1 !self SetTonemapRate 0.25 0.00 No
Io12.png OnUser1 !self SetBloomScale 0.2 0.00 No
Io12.png OnUser1 !self SetAutoExposureMin 0.4 0.00 No
Io12.png OnUser1 !self SetAutoExposureMax 1 0.00 No

See also