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

{ kind: "move_to", movement: MovementId, position: Position, request_key: Name, target: ActorRef }

Fields

NameTypeMeaning
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]+$

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"
}