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

TargetingProps

Property Type Default value Description
angle? number 60 Degrees either side of her facing within which a target is in front.
colors? Partial<FactionColors> red for hostile, yellow for neutral, green for friendly The mark’s colour for each faction, each laid over the default’s.
cycleKey? string "Tab" The key, as KeyboardEvent.code names it, that pins the next hostile in front, nearest first.
marker? "none" | "ring" | "pulse" | "sigil" | "motes" | GroundMark GroundMark.Ring What marks the ground under the target: a ring sized to its body, faint while the soft lock chose it, solid once pinned, and flashing on each hit it takes; another of the walk marker’s shapes; or nothing, for a game that draws its own from useTarget.
mode? "tab" | "soft-lock" | TargetMode TargetMode.SoftLock How it chooses before the player picks: the nearest hostile in front, or nothing, as classic tab-target has it.
range? number 8 Metres from her within which a target is in front.