Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
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>" }
set AI behavior on an entity
Entity id and behavior (idle, chase, patrol). chase uses target; patrol uses waypoints; speed defaults to 3.
behavior
idle
chase
patrol
target
waypoints
speed
The body is of type any.
any
AI goal set on the entity.