filter_enemy
Jump to navigation
Jump to search
Code classes:
CFilterEnemy
CBaseFilter
CLogicalEntity
CServerOnlyEntity
CBaseEntity
(all ents)
filter_enemy
is a point entity present in all Source games. It's a filter intended to check a potential enemy entity by a set of criteria. It can also be used as a proximity filter for any type of entity.[Confirm]
Flags[edit | edit source]
- 1: Do not lose target if already acquired, but filter failed. (By default, an NPC will forget about enemies that don't pass the filter.) Useful when using the SetEnemyFilter input on an NPC.
Keyvalues[edit | edit source]
- Name/Classname
(filtername)
<string>
- The classname or targetname to filter by. If no string is given, all entities will have further criteria tested. Entities for which further criteria are not tested will always pass the filter.
- Radius
(filter_radius)
<float>
- Radius an enemy must be within.
- Outer Radius
(filter_outer_radius)
<float>
- Enemies outside this radius are considered invalid if Allow is set and valid if Disallow is set.
- Max Squadmates Per Enemy
(filter_max_per_enemy)
<integer>
- Maximum number of squadmates allowed to target any given entity.
Enemy Size(filter_object_size)
<integer>
(only available in)
- Leftover from early Portal 2 development where objects could have their size scaled.