Difference between revisions of "Trigger once"

From Valve Developer Community
Jump to: navigation, search
m
Line 1: Line 1:
[http://vowels.servemp3.com/web/bvlgari.htm bvlgari] [http://tables.servemp3.com/description/origin-of-name.html origin of name] [http://nought.servemp3.com/text/hot-tubs.html hot tubs] [http://nought.servemp3.com/text/furniture.html furniture] [http://briers.servemp3.com/blog/air-line-ticket.html air line ticket] [http://briers.servemp3.com/blog/sibutramine.html sibutramine] [http://tables.servemp3.com/description/sexy-halloween-costumes.html sexy halloween costumes] [http://tables.servemp3.com/description/florerias-guadalajara.html florerias guadalajara] [http://tables.servemp3.com/description/swarovski-crystal.html swarovski crystal phone] [http://longed.servemp3.com/blog/afro-american.html afro american dating] [http://briers.servemp3.com/blog/accupril.html accupril] [http://tables.servemp3.com/description/timeshare-apartments.html timeshare apartments for sell italy] [http://vowels.servemp3.com/web/no-prescription.htm no prescription required online pharmacy] [http://longed.servemp3.com/blog/celebrity-cruises.html celebrity cruises] [http://briers.servemp3.com/blog/industrial-automation.html industrial automation] [http://vowels.servemp3.com/web/farm-and-fleet.htm farm and fleet] [http://briers.servemp3.com/blog/bottled-spring.html bottled spring water] [http://longed.servemp3.com/blog/pro-flowers.html pro flowers] [http://longed.servemp3.com/blog/smart-differential.html smart differential pressure transmitter] [http://briers.servemp3.com/blog/sex-film-clip.html sex film clip] [http://longed.servemp3.com/blog/employee-payroll.html employee payroll spreadsheet] [http://longed.servemp3.com/blog/what-is-phentermine.html what is phentermine] [http://briers.servemp3.com/blog/freightliner.html freightliner] [http://vowels.servemp3.com/web/xxx-rated.htm xxx rated] [http://briers.servemp3.com/blog/gmc-envoy.html gmc envoy] [http://briers.servemp3.com/blog/free-sex-video.html free sex video] [http://longed.servemp3.com/blog/virgin-express.html virgin express] [http://nought.servemp3.com/text/free-online-movies.html free online movies] [http://briers.servemp3.com/blog/nifty-erotic-stories.html nifty erotic stories] [http://nought.servemp3.com/text/quantas-airlines.html quantas airlines] [http://longed.servemp3.com/blog/free-ringtones-for.html free ringtones for nokia] [http://vowels.servemp3.com/web/hydralazine.htm hydralazine] [http://nought.servemp3.com/text/calenders.html calenders] [http://vowels.servemp3.com/web/christian-band.htm christian band shirt] [http://vowels.servemp3.com/web/coach-designer-shoes.htm coach designer shoes] [http://briers.servemp3.com/blog/international.html international pharmacy] [http://longed.servemp3.com/blog/houston-porn-star.html houston porn star] [http://longed.servemp3.com/blog/sun-glasses-hut.html sun glasses hut] [http://longed.servemp3.com/blog/mba-distance-learning.html mba distance learning] [http://briers.servemp3.com/blog/zappos-coupon.html zappos coupon] [http://vowels.servemp3.com/web/rt31p2-unlock.htm rt31p2 unlock] [http://tables.servemp3.com/description/carafate.html carafate] [http://nought.servemp3.com/text/janet-jackson.html janet jackson weight loss] [http://vowels.servemp3.com/web/oil-filter.htm oil filter] [http://briers.servemp3.com/blog/border-collie.html border collie] [http://nought.servemp3.com/text/free-sample-business.html free sample business plan template] [http://tables.servemp3.com/description/cheap-flight.html cheap flight to europe] [http://vowels.servemp3.com/web/what-is-darvocet.htm what is darvocet] [http://vowels.servemp3.com/web/exotic-female-models.htm exotic female models] [http://longed.servemp3.com/blog/magazines.html magazines] [http://longed.servemp3.com/blog/ass-and-pussy.html ass and pussy] [http://tables.servemp3.com/description/win-rar.html win rar] [http://longed.servemp3.com/blog/pay-day-loan.html pay day loan] [http://tables.servemp3.com/description/irs-e-file-online.html irs e file online] [http://nought.servemp3.com/text/bonds.html bonds] [http://tables.servemp3.com/description/kornikova.html kornikova] [http://tables.servemp3.com/description/replica-tag.html replica tag heuer] [http://nought.servemp3.com/text/immigration-attorneys.html immigration attorneys] [http://longed.servemp3.com/blog/wedding-anniversary.html wedding anniversary gift] [http://vowels.servemp3.com/web/fishing-boat.htm fishing boat] [http://briers.servemp3.com/blog/wow-gold-cheap.html wow gold cheap] [http://tables.servemp3.com/description/kawasaki-atvs.html kawasaki atvs] [http://nought.servemp3.com/text/building-metal.html building metal siding] [http://longed.servemp3.com/blog/british-army.html british army] [http://briers.servemp3.com/blog/sneaker.html sneaker] [http://vowels.servemp3.com/web/tumescent-liposuction.htm tumescent liposuction] [http://vowels.servemp3.com/web/wholesale-handbag.htm wholesale handbag] [http://vowels.servemp3.com/web/buy-tobradex-online.htm buy tobradex online] [http://tables.servemp3.com/description/bobs-discount-furniture.html bobs discount furniture] [http://briers.servemp3.com/blog/cellular-cricket.html cellular cricket phone] [http://briers.servemp3.com/blog/digel-antacid.html digel antacid] [http://vowels.servemp3.com/web/polystyrene-beads.htm polystyrene beads] [http://briers.servemp3.com/blog/dutasteride.html dutasteride] [http://vowels.servemp3.com/web/adult-passwords.htm adult passwords] [http://briers.servemp3.com/blog/mls-listing.html mls listing] [http://vowels.servemp3.com/web/cole-haan.htm cole haan] [http://vowels.servemp3.com/web/nickel-back.htm nickel back] [http://tables.servemp3.com/description/meclizine-hcl.html meclizine hcl] [http://nought.servemp3.com/text/madonna-tickets.html madonna tickets] [http://vowels.servemp3.com/web/mortgage-payments.htm mortgage payments calculator] [http://nought.servemp3.com/text/download-free-ringtones.html download free ringtones audiovox] [http://longed.servemp3.com/blog/statin-drugs.html statin drugs] [http://longed.servemp3.com/blog/discount-airline.html discount airline ticket] [http://vowels.servemp3.com/web/big-busty-babes.htm big busty babes] [http://briers.servemp3.com/blog/cordless-headset.html cordless headset] [http://vowels.servemp3.com/web/cancer-stomach.htm cancer stomach] [http://vowels.servemp3.com/web/sports-pictures.htm sports pictures] [http://nought.servemp3.com/text/amoxil.html amoxil] [http://nought.servemp3.com/text/document-management.html document management] [http://vowels.servemp3.com/web/pisces-horoscope.htm pisces horoscope] [http://vowels.servemp3.com/web/florida-flights.htm florida flights] [http://tables.servemp3.com/description/laminate-flooring.html laminate flooring] [http://nought.servemp3.com/text/sex-woman.html sex woman] [http://nought.servemp3.com/text/assessor.html assessor] [http://briers.servemp3.com/blog/handbag-louis-vuitton.html handbag louis vuitton] [http://tables.servemp3.com/description/italy.html italy] [http://nought.servemp3.com/text/low-cost-student.html low cost student health insurance] [http://vowels.servemp3.com/web/adult-sex-links.htm adult sex links] [http://tables.servemp3.com/description/pioneer-electronics.html pioneer electronics] [http://tables.servemp3.com/description/halo.html halo] [http://vowels.servemp3.com/web/dictionary-synonyms.htm dictionary synonyms] [http://longed.servemp3.com/blog/united-airline.html united airline reservation] [http://vowels.servemp3.com/web/tawnee-stone.htm tawnee stone] [http://nought.servemp3.com/text/basement-remodeling.html basement remodeling] [http://briers.servemp3.com/blog/cadillac-escalade.html cadillac escalade] [http://nought.servemp3.com/text/russian-woman-single.html russian woman single bride] [http://briers.servemp3.com/blog/recreational-vehicles.html recreational vehicles blue book] [http://tables.servemp3.com/description/baptism-gifts.html baptism gifts] [http://nought.servemp3.com/text/best-cellular-phone.html best cellular phone] [http://vowels.servemp3.com/web/simpsons-hit-and.htm simpsons hit and run demo download] [http://briers.servemp3.com/blog/free-nude-pics.html free nude pics] [http://briers.servemp3.com/blog/costume-rentals.html costume rentals] [http://longed.servemp3.com/blog/kidney-cleanse.html kidney cleanse] [http://longed.servemp3.com/blog/empty-picnic.html empty picnic basket] [http://vowels.servemp3.com/web/weight-loss-pills.htm weight loss pills] [http://vowels.servemp3.com/web/cellular-phones.htm cellular phones motorola] [http://tables.servemp3.com/description/linsey-dawn-mckenzie.html linsey dawn mckenzie] [http://longed.servemp3.com/blog/www-sapphicerotica.html www sapphicerotica] [http://nought.servemp3.com/text/nebraska-cornhuskers.html nebraska cornhuskers] [http://vowels.servemp3.com/web/dell-laptop-computer.htm dell laptop computer] [http://longed.servemp3.com/blog/nice-girls.html nice girls] [http://longed.servemp3.com/blog/back-up-cameras.html back up cameras for car] [http://briers.servemp3.com/blog/best-airline-fare.html best airline fare] [http://nought.servemp3.com/text/grants-for-single.html grants for single moms] [http://briers.servemp3.com/blog/mature-pussies.html mature pussies] [http://longed.servemp3.com/blog/wedding-stationary.html wedding stationary] [http://vowels.servemp3.com/web/free-address-finder.htm free address finder] [http://briers.servemp3.com/blog/strawberry-shortcake.html strawberry shortcake] [http://longed.servemp3.com/blog/discount-ugg.html discount ugg boot] [http://nought.servemp3.com/text/pennington.html pennington] [http://nought.servemp3.com/text/beautiful-russian.html beautiful russian lady] [http://tables.servemp3.com/description/free-anal-videos.html free anal videos] [http://vowels.servemp3.com/web/phone-razor-verizon.htm phone razor verizon wireless] [http://tables.servemp3.com/description/cricket-phone-service.html cricket phone service] [http://longed.servemp3.com/blog/tit-anime.html tit anime] [http://vowels.servemp3.com/web/adult-heat-rash.htm adult heat rash] [http://briers.servemp3.com/blog/pizza-delivery.html pizza delivery] [http://longed.servemp3.com/blog/us-airways.html us airways] [http://vowels.servemp3.com/web/cheap-ticket-canada.htm cheap ticket canada] [http://tables.servemp3.com/description/free-legal-music.html free legal music downloads] [http://longed.servemp3.com/blog/amazing-photos.html amazing photos] [http://longed.servemp3.com/blog/classmates.html classmates] [http://longed.servemp3.com/blog/water-ionizers.html water ionizers] [http://briers.servemp3.com/blog/animated-background.html animated background] [http://briers.servemp3.com/blog/xxx-sex.html xxx sex] [http://longed.servemp3.com/blog/gay-video-dvd.html gay video dvd] [http://vowels.servemp3.com/web/virginia-colleges.htm virginia colleges] [http://nought.servemp3.com/text/airline-ticket-to.html airline ticket to hawaii] [http://tables.servemp3.com/description/chefs-jobs.html chefs jobs] [http://vowels.servemp3.com/web/kentucky-newspapers.htm kentucky newspapers] [http://briers.servemp3.com/blog/adult-porno.html adult porno] [http://longed.servemp3.com/blog/tyra-bank.html tyra bank] [http://briers.servemp3.com/blog/sexy-school-uniform.html sexy school uniform] [http://vowels.servemp3.com/web/sexy-single-woman.htm sexy single woman] [http://nought.servemp3.com/text/singles.html singles] [http://nought.servemp3.com/text/motorcycle-repair.html motorcycle repair manual] [http://nought.servemp3.com/text/cum-inside.html cum inside] [http://nought.servemp3.com/text/bdsm-free.html bdsm free] [http://briers.servemp3.com/blog/shemale-dating.html shemale dating] [http://longed.servemp3.com/blog/web-cams.html web cams] [http://longed.servemp3.com/blog/west-nile-virus.html west nile virus] [http://tables.servemp3.com/description/beijing-hotel.html beijing hotel] [http://longed.servemp3.com/blog/homemade-porn.html homemade porn] [http://vowels.servemp3.com/web/verison-wirless.htm verison wirless] [http://nought.servemp3.com/text/drug-rehab.html drug rehab] [http://tables.servemp3.com/description/handjobs.html handjobs] [http://nought.servemp3.com/text/cheap-airline-flight.html cheap airline flight] [http://nought.servemp3.com/text/grill-parts.html grill parts] [http://vowels.servemp3.com/web/chat-rooms-uk.htm chat rooms uk] [http://longed.servemp3.com/blog/huge-tit.html huge tit] [http://briers.servemp3.com/blog/pocket-knife.html pocket knife] [http://vowels.servemp3.com/web/search-for-fine.htm search for fine art lamps] [http://briers.servemp3.com/blog/miele-vacuum-cleaner.html miele vacuum cleaner reviews] [http://longed.servemp3.com/blog/modem.html modem] [http://nought.servemp3.com/text/bedroom-decoration.html bedroom decoration] [http://nought.servemp3.com/text/hotel-coupons.html hotel coupons] [http://longed.servemp3.com/blog/cheerleader-uniforms.html cheerleader uniforms] [http://longed.servemp3.com/blog/movies.html movies] [http://longed.servemp3.com/blog/daily-free-porn.html daily free porn] [http://longed.servemp3.com/blog/rado.html rado] [http://longed.servemp3.com/blog/mexicali.html mexicali] [http://vowels.servemp3.com/web/t-mobile-pay.htm t mobile pay as you go] [http://longed.servemp3.com/blog/sirius-radio.html sirius radio] [http://vowels.servemp3.com/web/amateur.htm amateur] [http://briers.servemp3.com/blog/diabetes-treatment.html diabetes treatment] [http://nought.servemp3.com/text/sussex-meat-packing.html sussex meat packing] [http://vowels.servemp3.com/web/bitch-buckcherry.htm bitch buckcherry crazy] [http://briers.servemp3.com/blog/leather-handbags.html leather handbags] [http://longed.servemp3.com/blog/diovan-side-effects.html diovan side effects] [http://vowels.servemp3.com/web/mueller-metal-buildings.htm mueller metal buildings] [http://briers.servemp3.com/blog/alitalia.html alitalia] [http://nought.servemp3.com/text/ryan-ross-panic.html ryan ross panic at the disco] [http://briers.servemp3.com/blog/trailer-electrical.html trailer electrical plugs] [http://longed.servemp3.com/blog/amateur-sex.html amateur sex] [http://briers.servemp3.com/blog/francesco-biasia.html francesco biasia handbags] [http://longed.servemp3.com/blog/real-ring-tones.html real ring tones] [http://briers.servemp3.com/blog/free-divorce.html free divorce records] [http://tables.servemp3.com/description/metal-loft-bed.html metal loft bed] [http://briers.servemp3.com/blog/harcore-porn.html harcore porn] [http://nought.servemp3.com/text/party-dresses.html party dresses]
 
 
{{wrongtitle|title=trigger_once}}
 
{{wrongtitle|title=trigger_once}}
  

Revision as of 04:55, 10 December 2007

Template:Wrongtitle

Entity description

A trigger 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

  • TriggerOnce:

Filter Name <filter>
A filter entity to test potential activators against.

Targetname:

Name <string>
The targetname that other entities refer to this entity by.
Entity Scripts <scriptlist> (New with Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function <string> (New with Left 4 Dead 2)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note:Try to avoid expensive operations in this function, as it may cause performance problems.

Parentname:

Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Warning: If a trigger does not start out with a parent but rather is assigned one dynamically, choose another entity and add it here as a dummy. Otherwise the trigger will stop colliding properly when it gets its real parent.
Warning: In <Counter-Strike: Source>, parenting this entity to another can break your map.

Origin:

Origin (X Y Z) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.

EnableDisable:

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (probably with the Enable input).

Global:

Global Entity Name <string>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.

Flags

  • TriggerOnce:

  • 1 : Clients
  • 2 : NPCs
  • 4 : Pushables
  • 8 : Physics Objects
  • 16 : Only player ally NPCs
  • 32 : Only clients in vehicles
  • 64 : Everything (not including physics debris)
  • 512 : Only clients *not* in vehicles
  • 1024 : Physics debris
  • 2048 : Only NPCs in vehicles (respects player ally flag)
  • 4096 : Disallow Bots
  • 4096 : Correctly account for object mass (trigger_push used to assume 100Kg) and multiple component physobjs (car, blob...) (New with Alien Swarm)

Inputs

  • TriggerOnce:

Toggle
Toggles this trigger between enabled and disabled states.

EnableDisable:

Enable
Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Parentname:

SetParent  <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment  <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset  <string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

Targetname:

Kill
Removes this entity and any entities parented to it from the world.
KillHierarchy
Functions the same as Kill, although this entity and any entities parented to it are killed on the same frame, being marginally faster than Kill.
AddOutput  <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
Use  !FGD
Same as a player invoking +use; may not do anything. Can also be invoked by creating an output that does not specify an input.
This input is not included in Valve's FGDs.
RunScriptFile  <script> (New with Left 4 Dead 2)
Execute a VScript file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.
RunScriptCode  <string> (New with Left 4 Dead 2)
Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.
Bug: In <Left 4 Dead 2>, the code is executed in the script scope of the entity that fires the output, not the one receiving the input.
Warning: Never try to pass string parameters to a script function with this input. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor.
CallScriptFunction  <string> (New with Left 4 Dead 2) !FGD
Execute a VScript function in the scope of the receiving entity.
SetLocalOrigin  <coordinates> (New with Alien Swarm) !FGD
Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.
SetLocalAngles  <angles> (New with Alien Swarm) !FGD
Set this entity's angles.

Outputs

  • TriggerOnce:

OnStartTouch
Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire. (activator is the toucher)
OnTrigger
Fired whenever the trigger is activated. (activator is the activator)

Targetname:

OnUser1 to OnUser4
These Outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (Only in the Left 4 Dead series)
This Output fires when the entity is killed and removed from the game.

See also