Skip to main content
POST
/
path
/
set
set pathfinding goal on an entity
curl --request POST \
  --url http://localhost:3917/path/set \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_id": 3,
  "speed": 5,
  "target": [
    10,
    0,
    5
  ]
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

entity_id, a target position [x, y, z], and a movement speed (default 5.0). Attaches a NavAgent and PathGoal so the entity steers toward the target.

The body is of type any.

Response

200 - application/json

Path goal set on the entity (or a not-found message).

ok
boolean
required
message
string | null