FindNearestTargetOptions
What findNearestTarget takes.
Extends
Section titled “Extends”Properties
Section titled “Properties”| 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. |