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

setWalkTarget

setWalkTarget(writer, npc, target): void

Sets where npc’s walkToTarget() step walks: an entity, a point, or null for none, which leaves the step standing until a target is set. As Unity’s SetDestination, set before or during the step.

Parameter Type
writer EntityAuthority | SystemStep
npc Entity
target Entity | RoutePoint | null

void