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

ChaseTrait

const ChaseTrait: Trait<{ reach: number; reached: Entity | null; speed: number; walks: boolean; }>

Moves toward the nearest player’s character at speed, stopping reach away: along the world’s navmesh, or through the walk a player’s walker runs where walks asks for it or the world has no navmesh. reached holds the character within reach, or null: the step emits ChaseReachedEvent and ChaseExitedEvent on the step it changes.