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

Trigger remove: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎Outputs: Substituted IO templates)
 
(30 intermediate revisions by 19 users not shown)
Line 1: Line 1:
[http://ford-ka-2003.downslip.info/ ford ka 2003] [http://horstmann-hotels.misserve.info/ horstmann hotels] [http://indulger.info/index2_250.html home] [http://winx-nude.batswing.info/ Winx nude] [http://flashball.indulger.info/ flashball] [http://the-secret-of-lost-cavern.stroam.info/ the secret of lost cavern] [http://haltemprice.misserve.info/ haltemprice] [http://teenie.indulger.info/ teenie] [http://pocket-gal.batswing.info/ pocket gal] [http://ligth.indulger.info/ ligth] [http://indulger.info/index0_250.html index] [http://scanner-3d.batswing.info/ scanner 3d] [http://downslip.info/ downslip.info] [http://moca-yemen.misserve.info/ moca yemen] [http://tvtv-com.wrawler.info/ tvtv com] [http://publiweb-ws.batswing.info/ publiweb ws] [http://pop-smtp.wrawler.info/ pop smtp] [http://julia-venegas.unfeeble.info/ julia venegas] [http://do-nem-ai.downslip.info/ do nem ai] [http://lmc-vs-u2.unfeeble.info/ lmc vs u2] [http://muvo-n200-512mb.unfeeble.info/ muvo n200 512mb] [http://mauro-ed-elisa.stroam.info/ mauro ed elisa] [http://misserve.info/index7_666.html homepage] [http://unfeeble.info/index6_250.html site] [http://mp3-zen-touch-40-gb.downslip.info/ mp3 zen touch 40 gb] [http://stufe-gas.indulger.info/ stufe gas] [http://sean-sean.misserve.info/ sean sean] [http://conor.stroam.info/ conor] [http://lg-7900.downslip.info/ lg 7900] [http://burblers.info/index3_666.html home] [http://ebal.unfeeble.info/ ebal] [http://downslip.info/index3_1000.html homepage] [http://ddr2-400mhz.downslip.info/ ddr2 400mhz] [http://dvd-rental.stroam.info/ dvd rental] [http://the-101st-airborne-in-normandy.burblers.info/ the 101st airborne in normandy] [http://downslip.info/index8_1000.html homepage] [http://mallteam.wrawler.info/ mallteam] [http://radeon-a9250.burblers.info/ radeon a9250] [http://negras.burblers.info/ negras] [http://kvt-kenwood.stroam.info/ kvt kenwood] [http://hp-compaq-evo.indulger.info/ hp compaq evo] [http://blak-eyed.wrawler.info/ blak eyed] [http://asus-athlon-xp-duron.misserve.info/ asus athlon xp duron] [http://batswing.info/index6_1000.html page] [http://samp-spa.stroam.info/ samp spa] [http://piov.misserve.info/ piov] [http://ron-moss.stroam.info/ ron moss] [http://ricky-portera.wrawler.info/ ricky portera] [http://cecco.indulger.info/ cecco] [http://numa-numa-iei-mp3.misserve.info/ numa numa iei mp3] [http://gang-bad.downslip.info/ gang bad] [http://landsberg-an-der-warthe.downslip.info/ landsberg an der warthe] [http://carme-electra.batswing.info/ carme electra] [http://alpha10.stroam.info/ alpha10] [http://lumpen-skinhead.batswing.info/ lumpen skinhead] [http://lg-tft-l1715s.batswing.info/ lg tft l1715s] [http://cardprogger.stroam.info/ cardprogger] [http://quark-xpress-passport.downslip.info/ quark xpress passport] [http://t230-sony.downslip.info/ t230 sony] [http://batswing.info/index9_666.html link] [http://telefilm-buffy.stroam.info/ telefilm buffy] [http://d12-world.unfeeble.info/ d12 world] [http://dvd-recorder-vcr-hdmi.stroam.info/ dvd recorder vcr hdmi] [http://the-opportunists.unfeeble.info/ the opportunists] [http://elvis-presley-moody-blue.batswing.info/ elvis presley moody blue] [http://hote-tea-gabicce.wrawler.info/ hote tea gabicce] [http://free-graphics.indulger.info/ free graphics] [http://backroads.burblers.info/ backroads] [http://dagostea-dei-tei.burblers.info/ dagostea dei tei] [http://misserve.info/index2_666.html url] [http://stroam.info/index2_666.html index] [http://unfeeble.info/index6_250.html site] [http://tough-boy.burblers.info/ tough boy] [http://kadena.stroam.info/ kadena] [http://misserve.info/index7_666.html homepage] [http://codec-mpeg-2-nero.stroam.info/ codec mpeg 2 nero] [http://decoder-160-gb.wrawler.info/ decoder 160 gb] [http://kety-garbi.indulger.info/ kety garbi] [http://kodak-cx4210.misserve.info/ kodak cx4210] [http://wonderboy.burblers.info/ wonderboy] [http://newry.batswing.info/ newry] [http://lector-mp3.burblers.info/ lector mp3] [http://cabi.stroam.info/ cabi] [http://wrawler.info/ wrawler.info] [http://mazda-premacy.unfeeble.info/ mazda premacy] [http://the-roof.wrawler.info/ the roof] [http://volvo-v40-d-1-9-115-cv.burblers.info/ volvo v40 d 1 9 115 cv] [http://unfeeble.info/index0_666.html homepage] [http://f-980.unfeeble.info/ f 980] [http://philips-tv-plasma-1024x1024.burblers.info/ philips tv plasma 1024x1024] [http://john-sholto.unfeeble.info/ john sholto] [http://rcs-group.burblers.info/ rcs group] [http://eva-mendes.unfeeble.info/ eva mendes] [http://bia2-com.indulger.info/ bia2 com] [http://crash-5.burblers.info/ crash 5] [http://on-my-kness-411-lyrics.indulger.info/ on my kness 411 lyrics] [http://www-liderazgoymercadeo-con.stroam.info/ www liderazgoymercadeo con] [http://kenwood-fp940.indulger.info/ kenwood fp940] [http://nike-shirt.stroam.info/ nike shirt] [http://sd-cf.indulger.info/ sd cf]
{{CD|CTriggerRemove|file1=triggers.cpp}}
{{wrongtitle|title=trigger_remove}}
{{this is a|brush entity|name=trigger_remove}} It is a [[trigger]] volume that removes any [[entity|entities]] that touch it.


==Entity Description==
{{optim_brush}}
A trigger volume that removes any entities that touch it.


{{warning|Removing some entities can cause instability.}}
{{warning|Removing some entities can cause instability.}}


This is not the same as killing entities; i.e. NPCs removed in this manner will not fire their ''OnKilled'' outputs.  
This is not the same as killing entities; i.e. NPCs removed in this manner will not fire their ''OnKilled'' outputs.


==Availability==
{{code class|CTriggerRemove|triggers.cpp}}
{{in game|brush}} {{game-base}}
{{in code|class=class_c_trigger_remove.html CTriggerRemove|file=triggers_8cpp-source.html triggers.cpp}}


==Keyvalues==
==Keyvalues==
*{{kv targetname}}
{{KV Trigger}}
*{{kv trigger}}
{{KV Targetname}}


==Flags==
==Flags==
*{{fl trigger}}
{{Fl Trigger}}


==Inputs==
==Inputs==
*{{i targetname}}
{{I EnableDisable}}
*{{i trigger}}


==Outputs==
==Outputs==
*{{o targetname}}
{{O|OnRemove|Fired whenever an entity is removed.}}
*{{o trigger}}
*'''OnRemove'''
:Fired whenever an entity is removed.
 
[[Category:Entities]][[Category:Brush Entities]]

Latest revision as of 21:47, 19 April 2025

C++ Class hierarchy
CTriggerRemove
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_remove is a brush entity available in all Source Source games. It is a trigger volume that removes any entities that touch it.

Warning.pngWarning:Removing some entities can cause instability.

This is not the same as killing entities; i.e. NPCs removed in this manner will not fire their OnKilled outputs.

C++ In code, it is represented by theCTriggerRemoveclass, defined in thetriggers.cppfile.

Keyvalues

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

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

EnableDisable:

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

Outputs

OnRemove
Fired whenever an entity is removed.