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

PatrolState

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

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

direction: number

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

1 forward, -1 backward.


lap: number

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

Completed loops or round trips.


phase: "moving" | "waiting"

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

Whether the actor is approaching or waiting at the waypoint.


routeId: string | null

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

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


waypointIndex: number

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

Target waypoint index.