mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-11 20:20:06 +03:00
Updated Filters (markdown)
parent
b3364ff6ad
commit
3de633b89a
@ -5,13 +5,13 @@
|
|||||||
<img src="https://lh3.googleusercontent.com/u/0/d/17wiOcfTewzzQA5cb4dupIH404yW-RFNh=w1680-h907-iv1" width="96"/>
|
<img src="https://lh3.googleusercontent.com/u/0/d/17wiOcfTewzzQA5cb4dupIH404yW-RFNh=w1680-h907-iv1" width="96"/>
|
||||||
</p>
|
</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:
|
In Mapbase, all filters have been given the following new I/O/KV:
|
||||||
|
|
||||||
**Inputs**
|
**Inputs**
|
||||||
* **TestEntity** `<ehandle>` - Tests the filter against the specified entity and fires OnPass or OnFail based on the result. *(TestActivator only uses the activator)*
|
* **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**
|
**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.
|
* **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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user