filter_activator_attribute_int
![Filter class.png](/w/images/5/5a/Filter_class.png)
filter_activator_attribute_int
is a point entity available in all Source 2 games. It is a filter that checks the attributes of the activator.
Keyvalues
- Attribute Name
(filterattribute)
<string> - The attribute to filter by. If the filter mode is Allow, only entities who have the attribute with a value > 0 will pass the filter. If the filter mode is Disallow, all entities EXCEPT those who have the attribute with a value > 0 will pass the filter.
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
BaseFilter:
- Filter mode
(Negated)
<boolean> - Inverts the filter, making the specified criteria fail and all others pass.
Inputs
TestActivator
- Tests the entity that called the input (the !activator) against the filter, and fires either the OnPass or OnFail output.
Base:
RunScriptFile
- Load and execute a script file.
RunScriptCode
- Execute a fragment of script code.
CallScriptFunction
- Call a script function.
CallPrivateScriptFunction
- Calls a script function from this entity's private script scope.
CallGlobalScriptFunction
- Calls a script function in the global script scope.
Kill
- Removes this entity from the world.
KillHierarchy
- Removes this entity and all its children from the world.
AddOutput
- Adds an entity I/O connection to this entity. Parameter format: OutputName→TargetName→InputName→Parameter→Delay→MaxRefires
FireUser1
toFireUser4
- Fires the respective
OnUser
outputs; see User Inputs and Outputs.
Outputs
BaseFilter:
OnPass
OnFail
- One of these will fire when
TestActivator
input is sent, depending on if the activator is allowed by the filter or not.
Base:
OnUser1
toOnUser4
- These outputs each fire in response to the firing of the like-numbered
FireUser1
toFireUser4
Input; see User Inputs and Outputs. OnKilled
- This output fires when the entity is killed and removed from the game. Parameter is the inflictor.