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

FindNearestTargetOptions

What findNearestTarget takes.

Property Type Description
accepts? ((candidate) => boolean) | null A test of the caller’s own on top of targets, such as a chaser’s rule that it never runs at an ally.
from? ReadonlyVector3 Where it measures from, in place of the entity’s own feet.
level? boolean Whether it measures along the ground, leaving out height.
targets? TargetFilter Who the behaviour meets; the default, TargetKind.ControlledCharacters, where left out.