Skip to content

Logic Filter

Henry de Jongh edited this page Mar 7, 2023 · 5 revisions
Description Icon
A reactive logic component that passes through an invoked input if the activator passes a filter.

Parameters

Name Description
Match Activator Name The activator name must match this target name in order to pass the filter.

Inputs

Name Description Parameter
Filter Passes through the input if the activator passes the filter. parameter (string) The parameter to be passed to the output.

Outputs

Name Description Parameter
Passed Invoked when the activator passed the filter. parameter (string) The parameter to be passed to the input.
Rejected Invoked when the activator got rejected by the filter. parameter (string) The parameter to be passed to the input.

Remarks

The outputs pass through the input parameter when not overridden.

This can for example be used to invoke AddInvoke on a Logic Counter where the caller parameter is passed through as -1 or 1. If you then use a Logic Trigger and invoke Filter with a parameter of 1 when a collider enters the trigger and invoke Filter with a parameter of -1 when a collider exits the trigger, you can count the amount of colliders currently inside of the trigger that passed the filter. This technique prevents having to build several duplicate filters just to invoke different inputs (in this example, duplicating the filter to call SubtractInvoke on the counter, instead of using the caller parameter with AddInvoke and a negative value).

Clone this wiki locally