Logic Entity

LogicClassFilter

A filter entity that allows only entities of a specific class to pass through a func_trigger. Assign its target name to a trigger's Filter Name property.

Properties

Name Type Description
Classname String The exact class name of entities that are allowed to activate the trigger, e.g. Player. Any entity whose class name does not match is silently rejected.

Notes

LogicClassFilter does not do anything on its own. It is used exclusively by assigning its target name to a func_trigger’s Filter Name property, at which point the trigger will reject any entity that does not pass the filter’s test.

You should attach a LogicClassFilter set to your player class to virtually every trigger that should only respond to the player. Without a filter, enemies, physics props, and any other entity that moves through the volume will fire the trigger’s outputs.

This is especially important for level transition fire triggers. An enemy or physics object walking through the threshold should never trigger a level load.

Multiple triggers can reference the same filter entity. If you want to filter several triggers to the same class, place one LogicClassFilter and point all the triggers at it.