Commands › Movement
flyto
Fly smoothly towards a point
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "flyto",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"coords": "128/128/25",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
coordsstring | no | Region coordinates as "x/y/z". Required unless x, y and z are all sent. |
xnumber | no | X coordinate (send with y and z instead of coords). |
ynumber | no | Y coordinate. |
znumber | no | Z coordinate. |
speednumber | no | Metres per second, 0.2–50. 0 means no speed cap. Default: 6 |
Example response
{
"success": true,
"result": "OK",
"resulttext": "Flying to 128.0, 128.0, 60.0"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Same lifetime rules as steerto. Unlike walkto, the height is used.