Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

PatrolState

Defined in: server/api.d.ts:4904

A running patrol’s snapshot. Indices and laps start at zero.

direction: number

Defined in: server/api.d.ts:4923

1 forward, -1 backward.


lap: number

Defined in: server/api.d.ts:4918

Completed loops or round trips.


phase: "moving" | "waiting"

Defined in: server/api.d.ts:4928

Whether the actor is approaching or waiting at the waypoint.


routeId: string | null

Defined in: server/api.d.ts:4908

Stable route id; null for an anonymous point-array patrol.


waypointIndex: number

Defined in: server/api.d.ts:4913

Target waypoint index.