Skip to main content
POST
/
ai
/
set
set AI behavior on an entity
curl --request POST \
  --url http://localhost:3917/ai/set \
  --header 'Content-Type: application/json' \
  --data '
{
  "behavior": "chase",
  "entity_id": 5,
  "speed": 3,
  "target": 3
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Entity id and behavior (idle, chase, patrol). chase uses target; patrol uses waypoints; speed defaults to 3.

The body is of type any.

Response

200 - application/json

AI goal set on the entity.

ok
boolean
required
message
string | null