CMCharacter Modules 0.1.0

Character Filter

Kind: World component · Add Component: Character Modules > World > Character Filter

Lets a trigger react only to some characters, or only in the air or on the ground. Triggers fire only when they should.

Lets a trigger react only to some characters, or only in the air or on the ground.

Inspector
▼Character Filter⋮
FootingAny ▾
States(empty)
Minimum Speed0
Presets(empty)
The Character Filter component in the Inspector, with its defaults.
Origin. A level-scripting convention.

How it works

Decides which characters a trigger, pressure pad or bump target notices: only on the ground or only in the air, only in certain states (a slide-only gate, a swim-only current), only above a speed, only certain presets. Put it next to the trigger's collider (or on a parent of a solid one). Every condition must hold.

Properties

PropertyDescriptionRangeDefault
FootingNotice characters on the ground, in the air, or either.Any
StatesNotice only characters in one of these states, e.g. Walk, Swim, Ladder. Empty: any state.(empty)
Minimum SpeedNotice only characters moving at least this fast, m/s.0 or more0
PresetsNotice only these presets, e.g. Arena Shooter. Empty: any preset.(empty)

Additional resources