Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

TargetFilter

TargetFilter = TargetEntry | None | "none" | readonly TargetEntry[]

Who a behaviour meets, as a layer mask says who a body meets: one entry or a list. Kinds and layers add, so [TargetKind.ControlledCharacters, characters.collisionLayers.npcs] meets the player’s character and every NPC. Teams and rules narrow, so [red] meets the characters red’s players control. A list with no kind or layer narrows the default, TargetKind.ControlledCharacters; TargetKind.None meets nobody.