EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

move_to

Start a persisted navigation order of an AI-controlled actor; movement_finished reports its end.

Signature

{ follow: (ActorRef)?, kind: "move_to", movement: MovementId, position: Position, request_key: Name, target: ActorRef, within_mm: (PositiveDistance)? }

Fields

NameTypeMeaning
followActorRefActor to walk after (an escort): the target keeps close behind it instead of heading straight for the destination.
Length: 1…256; Pattern: ^[\s\S]+$
kind"move_to"Discriminant
movementMovementIdMovement profile of the order.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: movement
positionPositionDestination together with its map instance.
request_keyNameKey echoed by movement_finished.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
targetActorRefActor the effect applies to.
Length: 1…256; Pattern: ^[\s\S]+$
within_mmPositiveDistanceDistance to the destination that counts as arrived; absent: half a metre.
Range: 1…2147483647; Unit: mm

Validated example

{
  "kind": "move_to",
  "movement": "core:raider_move",
  "position": {
    "map": "m1",
    "x_mm": 5000,
    "y_mm": 0,
    "z_mm": 5000
  },
  "request_key": "patrol",
  "target": "a2"
}