Targeting Filter
A Targeting Filter narrows a list of Actors produced by a Relation State or Team Flags target (on Redirectors, State Based Effects, Effectors) or by a Custom Targeter / Custom Actor. The source of a filter is the Relate To Actor of that scope.
Types
- Chain
- Distance
- Closest In Sight
- Random Actor Except Source
- Stat Based
- Order By Distance
- Order By Stat
- Take
Custom filters
Derive from TargetingFilter and implement both methods:
public override void Filter(List<ActorEntity> list, ActorEntity source, bool canLog)
public override void FilterTo(List<ActorEntity> rawList, List<ActorEntity> list, ActorEntity source, bool canLog)
Filter narrows the supplied list in place; FilterTo adds matching candidates to the output list. Forward canLog to any conditions or nested filters you call; see Log Filtering.