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

WalkTargetTrait

const WalkTargetTrait: LocalTrait<Trait<{ entity: Entity | null; point: () => RoutePoint | null; }>>

Where an NPC’s walkToTarget() step walks: entity, or point, [x, z] on the ground or [x, y, z], one at a time, which setWalkTarget writes. Unreal’s Move To reads a blackboard key the same way. The step clears it once it arrives or gives up. Each side keeps its own.