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

Targeting

Targeting(props): Element | null

Chooses the player’s TargetTrait, which every ability she casts reads, and marks it on the ground: soft lock takes the nearest hostile target in front, a click or a tap on a target pins it until it dies or she pins another, and the cycle key pins the next in front. A game that writes TargetTrait from its own system instead has made a mode of its own. On a room’s own world it chooses nothing: each page chooses its own player’s.

Parameter Type
props TargetingProps

Element | null