Updated Filters (markdown)

Blixibon 2019-12-07 23:54:53 -06:00
parent b3364ff6ad
commit 3de633b89a

@ -5,13 +5,13 @@
<img src="https://lh3.googleusercontent.com/u/0/d/17wiOcfTewzzQA5cb4dupIH404yW-RFNh=w1680-h907-iv1" width="96"/>
</p>
A filter is a type of entity that holds a set of rules that other entities can use to determine behaviors, like a `trigger_once` using a `filter_activator_name` that only allows an entity with the name "cow" to pass it. [Click here for more information on filters in Source.](https://developer.valvesoftware.com/wiki/Category:Filters)
A filter is a type of entity that can test another entity against a certain condition or set of conditions, like a `trigger_once` using a `filter_activator_name` that only allows an entity with the name "cow" to pass it. [Click here for more information on filters in Source.](https://developer.valvesoftware.com/wiki/Category:Filters)
In Mapbase, all filters have been given the following new I/O/KV:
**Inputs**
* **TestEntity** `<ehandle>` - Tests the filter against the specified entity and fires OnPass or OnFail based on the result. *(TestActivator only uses the activator)*
* **SetField** `<any>` - Sets this filter's primary testing criteria. (e.g. the name to test against the activator)
* **SetField** `<any>` - Sets this filter's primary testing criteria (e.g. the name to test against the activator).
**KeyValues**
* **Pass caller when tested** `<boolean>` - When tested with TestActivator or TestEntity, this causes the OnPass and OnFail outputs to use the entity that called the test as the caller instead of the filter itself.