Template:I BaseFilter

From Valve Developer Community
Revision as of 03:38, 8 May 2025 by Nescius (talk | contribs) (feels useless to even mention)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{I BaseFilter}}

BaseFilter:

TestActivator <variant>
Tests the entity that called the input (the !activator) against the filter, and fires either the OnPass or OnFail output. (the parameter it takes is unused)
Icon-Bug.pngBug:Calling this input will cause the server to crash if the !activator entity no longer exists. Do not use this input to test any entities which may be asynchronously deleted, such as players or projectiles, or in an i/o chain which might be initiated by entity deletion, such as the OnEndTouch output of a trigger.


{{I BaseFilter|nocrash=1}}

BaseFilter:

TestActivator <variant>
Tests the entity that called the input (the !activator) against the filter, and fires either the OnPass or OnFail output. (the parameter it takes is unused)
Note.pngNote:This filter doesn't cause the server to crash as most other filters do if activator entity no longer exists.