Due to the recent resurgence of spam, we have temporarily disabled user creation and page editing/creation as we resolve the issue.

Filters

From Snapwiki
Revision as of 2016-06-28T16:58:14 by KDearnley (Talk | contribs) (Added a quick Custom Filter example)

Jump to: navigation, search

Filters can be used to block or allow a signal based on the signal’s activator. Filters are like the bouncer at a nightclub, they only allow an activator on the list to pass.

Filter Types

INPUTS
Filter-AI.png AI Filter Use this filter to define a specific AI pattern. (Note: Possessed Workers and Scientists will not teleport to a destination if the AI Filter is prepared using the Negate option. Further, Possessed Workers and Scientists will teleport to a destination even if the AI filter is set to just one of them or any other demon. A bug fix is coming in a future update.)
Filter-Bool.png Boolean Filter The signal will continue only if the Boolean is true.
Filter-Droppable.png Droppable Filter Use this filter to define a Droppable pattern.
Filter-Module.png Module Filter Use this filter to define a module pattern.
Filter-Player.png Player Filter Use this filter to define a specific player pattern.
Filter-Race.png Race Filter Use this filter to define a specific race pattern. (Note: The Race Filter will not function unless the player slot is set to Demon Player in the Publish Settings. A bug fix is coming in a future update.)
Filter-Team.png Team Filter Use this filter to define a specific team pattern.
Filter-Custom.png Custom Filter Add filters to the Custom Filter to define the who, what and where. Use the Custom Filter by name or place it between an output and an input.
Filter-Volume.png Volume Filter Use this filter to define a specific volume pattern.

Adding a Filter to a Logic Chain

When creating a map, I want to add a teleporter back to the Team 1 base. I want to limit which team can use the teleporter. After adding a Teleporter Pad and a Teleport Destination, I can add a filter in the middle of the logic chain so that only Team 1 can use the teleporter.

Hover over the logic chain between the On Entered output and the Teleport To input. The chain will turn orange.
AddFilter1.PNG

Hold down the Options button and select Add Filter. On PC, the default keys are LEFT CTRL + G. On XBOX One, the default buttons are LT + A. ON PS4, the default buttons are LT + X. From the Filters selection menu, pick the Team Filter.
AddFilter2.PNG

This will add a diamond-shaped object to your logic chain. Open the Team Filter properties. Set the Team you want to allow to true, set all the teams you want to block to false. In this case, only Team 1 will be allowed to use the teleporter.
AddFilter3.PNG

In some cases, you might want to negate your filter. Negating your filter makes it do exactly the opposite. In our example, Team 1 will be blocked and all the other teams will be allowed.


Adding a Filter to a Property

Some objects, like FX and volumes, have a Filter property that can be used to limit who can interact with the object. This property provides some basic filters for you to pick from. In this example, the blue Large Fire will only damage players on Team 1.
FiltersProperty.PNG

Creating a Custom Filter

You can also create much more complex filters such as "All teams except Team 1" or "Player 1 with a Red Keycard" by combining filters together in a Custom Filter. Custom Filters are a variable, and can be used in a logic chain or in an object's property.

Add the Custom Filter object from the Variables Category. In our example, we want the blue Large Fire to damage all players on any team except Team 1. We will call this Custom Filter 'Team 1'.
600px

Hover over the Filter object, press the Add button, move the cursor off of the Custom Filter and press Add Filter when the option appears. Select Team Filter from the list. Open the properties for your new Team Filter, and set Team 1 to false.
600px

Open the properties on the blue Large Fire. In the Filter property, the new Custom Filter named 'Team 1' should be available at the end of the list. With this custom filter, any player on Teams 2, 3 or 4 will be damaged by the blue Large Fire.
600px