This article's documentation is for anything that uses the Source engine. Click here for more information.

Trigger once: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(38 intermediate revisions by 25 users not shown)
Line 1: Line 1:
[http://aeson.servemp3.com/small/my-give-a-damns.html my give a damns busted] [http://espied.servemp3.com/content/butt-galleries.html butt galleries] [http://spying.servemp3.com/teenage-witch-cast.html teenage witch cast] [http://unsafe.servemp3.com/web/buttfucking.html buttfucking] [http://potinz.servemp3.com/pre-teen-pussy.htm pre teen pussy pre teen porn] [http://surfguitar.servemp3.com/hydroxycut.html hydroxycut] [http://aeson.servemp3.com/small/gas-mask.html gas mask] [http://potinz.servemp3.com/close-up-pussy.htm close up pussy cumming] [http://espied.servemp3.com/content/virginia-automotive.html virginia automotive glass] [http://boors.servemp3.com/blog/mary-engelbreit.html mary engelbreit] [http://robbed.servemp3.com/small/sodomy.htm sodomy] [http://robbed.servemp3.com/small/mail-order-wine.htm mail order wine uk] [http://robbed.servemp3.com/small/bad-babes.htm bad babes] [http://aeson.servemp3.com/small/flesh-gordon.html flesh gordon] [http://aeson.servemp3.com/small/brianna-blaze.html brianna blaze] [http://boors.servemp3.com/blog/ww-ii.html ww ii] [http://espied.servemp3.com/content/cum-fest.html cum fest] [http://surfguitar.servemp3.com/joyce-green-hospital.html joyce green hospital] [http://spying.servemp3.com/jack-black.html jack black] [http://corner.servemp3.com/description/guy-gallery.html guy gallery] [http://boors.servemp3.com/blog/mongols.html mongols] [http://spying.servemp3.com/frostbite.html frostbite] [http://trump.servemp3.com/html/baseball-pants.html baseball pants] [http://espied.servemp3.com/content/purple-haze.html purple haze jimi hendrix] [http://boors.servemp3.com/blog/folding-ladder.html folding ladder] [http://boors.servemp3.com/blog/tuneup-utilities.html tuneup utilities] [http://corner.servemp3.com/description/mourning-dove.html mourning dove] [http://surfguitar.servemp3.com/medieval-age-game.html medieval age game] [http://surfguitar.servemp3.com/roi-return-of.html roi return of investment] [http://corner.servemp3.com/description/erotic-night.html erotic night story wedding] [http://robbed.servemp3.com/small/kuchnia-niemiecka.htm kuchnia niemiecka] [http://unsafe.servemp3.com/web/sexy-gays.html sexy gays] [http://unsafe.servemp3.com/web/bite-blocker.html bite blocker] [http://aeson.servemp3.com/small/tug-jobs.html tug jobs] [http://potinz.servemp3.com/unemployment.htm unemployment insurance] [http://corner.servemp3.com/description/hotwheels.html hotwheels] [http://trump.servemp3.com/html/video-sexe.html video sexe] [http://trump.servemp3.com/html/mixed-wrestling.html mixed wrestling] [http://robbed.servemp3.com/small/booby.htm booby] [http://boors.servemp3.com/blog/crappie.html crappie] [http://surfguitar.servemp3.com/na.html na] [http://spying.servemp3.com/evil-movie-resident.html evil movie resident trailer] [http://robbed.servemp3.com/small/avis-canada-car.htm avis canada car rental] [http://espied.servemp3.com/content/murderdolls.html murderdolls] [http://robbed.servemp3.com/small/wake-me-up.htm wake me up] [http://potinz.servemp3.com/get-fuzzy.htm get fuzzy] [http://aeson.servemp3.com/small/hells-kitchen.html hells kitchen] [http://surfguitar.servemp3.com/faux-fur-hat.html faux fur hat] [http://trump.servemp3.com/html/wallpapers.html wallpapers] [http://spying.servemp3.com/ninja-throwing.html ninja throwing stars] [http://aeson.servemp3.com/small/raven-and-starfire.html raven and starfire] [http://surfguitar.servemp3.com/max-adult-info.html max adult info bbs] [http://corner.servemp3.com/description/scottish-kilt.html scottish kilt for men] [http://boors.servemp3.com/blog/twenty.html twenty] [http://corner.servemp3.com/description/movies-with-bondage.html movies with bondage scenes in them] [http://trump.servemp3.com/html/promotional-corporate.html promotional corporate gift] [http://potinz.servemp3.com/shots-of-teens-in.htm shots of teens in thongs] [http://boors.servemp3.com/blog/chessworld.html chessworld] [http://unsafe.servemp3.com/web/sand-tire-review.html sand tire review] [http://corner.servemp3.com/description/sailor-moon.html sailor moon pussy] [http://espied.servemp3.com/content/rom-hustler.html rom hustler] [http://potinz.servemp3.com/beaches.htm beaches] [http://boors.servemp3.com/blog/parking-lot.html parking lot] [http://boors.servemp3.com/blog/naked-mens-pictures.html naked mens pictures] [http://espied.servemp3.com/content/fabiana-udenio.html fabiana udenio] [http://trump.servemp3.com/html/amortization-calculator.html amortization calculator] [http://potinz.servemp3.com/the-butterfly.htm the butterfly effect] [http://aeson.servemp3.com/small/rod-storage-unit.html rod storage unit] [http://espied.servemp3.com/content/cartoon-dolls-maker.html cartoon dolls maker] [http://espied.servemp3.com/content/military-tanks.html military tanks] [http://surfguitar.servemp3.com/strippers-gay.html strippers gay gallery] [http://surfguitar.servemp3.com/pet-screen-door.html pet screen door] [http://aeson.servemp3.com/small/long-circumcised.html long circumcised] [http://surfguitar.servemp3.com/little-girl-incest.html little girl incest] [http://espied.servemp3.com/content/aruba.html aruba] [http://surfguitar.servemp3.com/hentai-teen-titans.html hentai teen titans] [http://spying.servemp3.com/free-young-girl.html free young girl galleries] [http://unsafe.servemp3.com/web/ftvideo.html ftvideo] [http://spying.servemp3.com/gay-latino-hombres.html gay latino hombres] [http://surfguitar.servemp3.com/sturgis-women.html sturgis women] [http://spying.servemp3.com/proxy-server.html proxy server] [http://surfguitar.servemp3.com/amphibians.html amphibians] [http://surfguitar.servemp3.com/japanese-armour.html japanese armour] [http://corner.servemp3.com/description/satelite-map.html satelite map] [http://corner.servemp3.com/description/stile-project.html stile project] [http://espied.servemp3.com/content/wet-panties-on.html wet panties on teens] [http://surfguitar.servemp3.com/vase.html vase] [http://robbed.servemp3.com/small/sex-fuck-boat.htm sex fuck boat] [http://unsafe.servemp3.com/web/free-music-video.html free music video downloads] [http://spying.servemp3.com/marble-knobs.html marble knobs] [http://surfguitar.servemp3.com/adv-autumn-gate.html adv autumn gate image intl] [http://corner.servemp3.com/description/nitro-rc-part.html nitro rc part] [http://surfguitar.servemp3.com/open-pussy.html open pussy] [http://robbed.servemp3.com/small/insertion-point.htm insertion point not selected] [http://corner.servemp3.com/description/golf-magazine.html golf magazine] [http://surfguitar.servemp3.com/accident-reconstruction.html accident reconstruction] [http://unsafe.servemp3.com/web/celebrity-sex.html celebrity sex tape] [http://corner.servemp3.com/description/free-full-sex.html free full sex movies] [http://robbed.servemp3.com/small/laguna-beach.htm laguna beach] [http://unsafe.servemp3.com/web/priority-one-financial.html priority one financial services] [http://aeson.servemp3.com/small/teen-kissing-gallery.html teen kissing gallery] [http://potinz.servemp3.com/cheating-husbands.htm cheating husbands] [http://aeson.servemp3.com/small/key-west-boats.html key west boats inc] [http://spying.servemp3.com/palace-resorts.html palace resorts cancun] [http://unsafe.servemp3.com/web/interracial-sex.html interracial sex short stories] [http://robbed.servemp3.com/small/armpit-hair.htm armpit hair] [http://spying.servemp3.com/fantasy-football.html fantasy football player rankings] [http://aeson.servemp3.com/small/dog-carrier.html dog carrier] [http://corner.servemp3.com/description/walden-books.html walden books] [http://espied.servemp3.com/content/free-accidental.html free accidental nudity] [http://boors.servemp3.com/blog/suspension.html suspension] [http://robbed.servemp3.com/small/department-of-veterans.htm department of veterans affairs] [http://unsafe.servemp3.com/web/womens-sandal.html womens sandal] [http://aeson.servemp3.com/small/kosmetik-video.html kosmetik video] [http://aeson.servemp3.com/small/naked-jennifer.html naked jennifer lopez] [http://robbed.servemp3.com/small/gigantic-penis.htm gigantic penis] [http://spying.servemp3.com/alaska-hunting.html alaska hunting] [http://unsafe.servemp3.com/web/ip.html ip] [http://surfguitar.servemp3.com/j-lo.html j lo] [http://trump.servemp3.com/html/bunny-ranch-in-nevada.html bunny ranch in nevada] [http://espied.servemp3.com/content/relay-manufacturers.html relay manufacturers] [http://trump.servemp3.com/html/liv-tyler-playboy.html liv tyler playboy] [http://espied.servemp3.com/content/opml-rss.html opml rss] [http://corner.servemp3.com/description/discovery-toys.html discovery toys] [http://potinz.servemp3.com/pet-classified.htm pet classified] [http://espied.servemp3.com/content/tales-from-the-crypt.html tales from the crypt] [http://surfguitar.servemp3.com/real-estate-san.html real estate san jose ca] [http://robbed.servemp3.com/small/details-product.htm details product] [http://aeson.servemp3.com/small/female-model-portfolios.html female model portfolios] [http://boors.servemp3.com/blog/nichons.html nichons] [http://corner.servemp3.com/description/city-of-heros.html city of heros] [http://surfguitar.servemp3.com/wood-chips-for.html wood chips for fuel] [http://spying.servemp3.com/paper-shredder.html paper shredder] [http://corner.servemp3.com/description/female-pussy.html female pussy] [http://trump.servemp3.com/html/lapas.html lapas] [http://trump.servemp3.com/html/fantasy-forced.html fantasy forced sex] [http://espied.servemp3.com/content/drunken-teens.html drunken teens] [http://spying.servemp3.com/facial-products.html facial products] [http://unsafe.servemp3.com/web/tranny-hunter.html tranny hunter] [http://boors.servemp3.com/blog/cute-nude-vietnamese.html cute nude vietnamese] [http://trump.servemp3.com/html/anchor-cement.html anchor cement] [http://spying.servemp3.com/blues-clues.html blues clues] [http://aeson.servemp3.com/small/old-testament.html old testament] [http://unsafe.servemp3.com/web/skater-guys.html skater guys] [http://espied.servemp3.com/content/hot-chicks-naked.html hot chicks naked] [http://potinz.servemp3.com/danish-grannies.htm danish grannies] [http://spying.servemp3.com/long-dick-in.html long dick in the world] [http://unsafe.servemp3.com/web/sacramento-home.html sacramento home loans] [http://boors.servemp3.com/blog/montrez.html montrez] [http://surfguitar.servemp3.com/street-fighter.html street fighter sex] [http://aeson.servemp3.com/small/pigeon-control.html pigeon control] [http://trump.servemp3.com/html/epson-store.html epson store] [http://trump.servemp3.com/html/read-full-books.html read full books online] [http://surfguitar.servemp3.com/spider-monkey.html spider monkey] [http://trump.servemp3.com/html/specialty-products.html specialty products] [http://aeson.servemp3.com/small/solar-powered-attic.html solar powered attic fan] [http://spying.servemp3.com/ponies-for-sale.html ponies for sale] [http://robbed.servemp3.com/small/placement-immobilier.htm placement immobilier] [http://robbed.servemp3.com/small/gushing-girls.htm gushing girls] [http://unsafe.servemp3.com/web/memorial-dvd.html memorial dvd from slide show] [http://boors.servemp3.com/blog/youth-summer-camp.html youth summer camp] [http://corner.servemp3.com/description/torre-wilson-nude.html torre wilson nude] [http://spying.servemp3.com/avalon-anders.html avalon anders] [http://boors.servemp3.com/blog/ethnic-identity.html ethnic identity measure] [http://spying.servemp3.com/modesto-homes.html modesto homes] [http://corner.servemp3.com/description/girl-licking-girl.html girl licking girl] [http://espied.servemp3.com/content/sean-william-scott.html sean william scott] [http://corner.servemp3.com/description/jobs-in-iraq.html jobs in iraq] [http://unsafe.servemp3.com/web/beach-sullivans.html beach sullivans island isle of palms] [http://aeson.servemp3.com/small/lidar-camera.html lidar camera] [http://espied.servemp3.com/content/penny-lancaster.html penny lancaster] [http://corner.servemp3.com/description/london-theatre.html london theatre tickets] [http://corner.servemp3.com/description/palm-reading.html palm reading] [http://espied.servemp3.com/content/manhood.html manhood] [http://trump.servemp3.com/html/nursing-model-of.html nursing model of care] [http://corner.servemp3.com/description/female-breast.html female breast photography] [http://surfguitar.servemp3.com/pretenders.html pretenders] [http://potinz.servemp3.com/business-credit.htm business credit cards] [http://corner.servemp3.com/description/free-porn-links.html free porn links] [http://surfguitar.servemp3.com/jacksonville.html jacksonville zoo] [http://espied.servemp3.com/content/nude-kirsten-dunst.html nude kirsten dunst] [http://potinz.servemp3.com/homeopathy-medicine.htm homeopathy medicine] [http://aeson.servemp3.com/small/ways-to-quit.html ways to quit smoking] [http://surfguitar.servemp3.com/belly-boat.html belly boat] [http://robbed.servemp3.com/small/hypnosis-training.htm hypnosis training] [http://potinz.servemp3.com/assistant-building.htm assistant building surveyor] [http://unsafe.servemp3.com/web/fruit-basket.html fruit basket] [http://potinz.servemp3.com/security-for-transport.htm security for transport of military vehicles] [http://aeson.servemp3.com/small/mp3-download-program.html mp3 download program] [http://trump.servemp3.com/html/tv-shows.html tv shows] [http://unsafe.servemp3.com/web/hot-teen-pussy.html hot teen pussy] [http://corner.servemp3.com/description/andy-warhol.html andy warhol] [http://boors.servemp3.com/blog/baqua-spa.html baqua spa] [http://aeson.servemp3.com/small/india-girls.html india girls] [http://surfguitar.servemp3.com/job-ofers-for.html job ofers for an interior designer] [http://espied.servemp3.com/content/waterproof-backpack.html waterproof backpack] [http://potinz.servemp3.com/booby-traps.htm booby traps] [http://boors.servemp3.com/blog/uk-passports.html uk passports] [http://surfguitar.servemp3.com/promotional-coaster.html promotional coaster] [http://unsafe.servemp3.com/web/incorporate-online.html incorporate online]
{{LanguageBar}}
{{wrongtitle|title=trigger_once}}
{{TabsBar}}
{{CD|CTriggerOnce|file1=triggers.cpp}}
{{This is a|brush entity|name=trigger_once}} It is a trigger volume that removes itself after it has been triggered (touched by a qualifying entity) once. A [[trigger]] uses [[outputs]] to activate an [[event]] in another [[entity]].


== Entity description ==
{{sensor brush}}
A trigger [[Entity#Brush_entities|volume]] that removes itself after it is triggered once (touched by a qualifying entity). A trigger uses outputs to activate an event in another entity.


== Keyvalues ==
== Keyvalues ==
* {{kv triggeronce}}
{{KV Targetname}}
{{KV BaseTrigger}}


== Flags ==
== Flags ==
* {{fl triggeronce}}
{{Fl BaseTrigger}}


== Inputs ==
== Inputs ==
* {{i triggeronce}}
{{I|Toggle|Toggles this trigger between enabled and disabled states.}}
{{I|Enable|Enable trigger}}
{{I|Disable|Disable trigger}}
{{I|StartTouch|Behave as if the {{ent|!caller}} entity had just entered the trigger volume. Accepts non-physical entities.|since={{Src07}}|nofgd=1}}
::{{note|Will trigger OnStartTouch output and the trigger won't be removed.}}
::{{warning|If !caller doesn't exist game will crash}}


== Outputs ==
== Outputs ==
* {{o triggeronce}}
{{O|OnStartTouch}}
{{O|OnTrigger|activator = entity that touched the trigger|Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire.}}
{{Important|If the [[trigger_once]] is enabled while multiple entities that can trigger it are touching it each output will have different outcomes. OnStartTouch will fire for '''each''' [[!activator]]. Meanwhile OnTrigger will only trigger '''once'''.{{Note| The refire amount will decide how many times your OnStartTouch will fire.}}}}


== See also ==
== See also ==
Line 21: Line 30:
* [[Inputs and Outputs]]
* [[Inputs and Outputs]]


[[Category:Entities]]
[[Category:IO System]]
[[Category:Brush Entities]]

Latest revision as of 08:22, 23 April 2025

English (en)中文 (zh)Translate (Translate)
edit
C++ Class hierarchy
CTriggerOnce
CTriggerMultiple
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_once is a brush entity available in all Source Source games. It is a trigger volume that removes itself after it has been triggered (touched by a qualifying entity) once. A trigger uses outputs to activate an event in another entity.

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.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Flags

BaseTrigger
Everything (not including physics debris) : [64]
Clients (Survivors, Special Infected, Tanks Left 4 Dead seriesLeft 4 Dead series) : [1]
Only clients in vehicles : [32]
Only clients *not* in vehicles : [512]
Disallow Bots (removed since Left 4 Dead) : [4096]
NPCs (Common Infected, Witches Left 4 Dead seriesLeft 4 Dead series) : [2]
Only player ally NPCs : [16]
Only NPCs in vehicles (respects player ally flag) : [2048]
Physics Objects (not including physics debris) : [8]
Physics debris (include also physics debris) : [1024]
Pushables (Passes entities with classname func_pushable) : [4] Obsolete
Deprecated.
Equivalent to using Everything + filter_activator_class that filters func_pushable.

Inputs

Toggle
Toggles this trigger between enabled and disabled states.
Enable
Enable trigger
Disable
Disable trigger
StartTouch  (in all games since Source 2007) !FGD
Behave as if the !caller entity had just entered the trigger volume. Accepts non-physical entities.
Note.pngNote:Will trigger OnStartTouch output and the trigger won't be removed.
Warning.pngWarning:If !caller doesn't exist game will crash

Outputs

OnStartTouch
OnTrigger
!activator = entity that touched the trigger
!caller = this entity
Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire.
Icon-Important.pngImportant:If the trigger_once is enabled while multiple entities that can trigger it are touching it each output will have different outcomes. OnStartTouch will fire for each !activator. Meanwhile OnTrigger will only trigger once.
Note.pngNote: The refire amount will decide how many times your OnStartTouch will fire.

See also