# fly

Commands the bot to start or stop flying.

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("fly", [
  "fly", "on"
]);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="fly"
```

```snippet http-api-input-q5yvAagqsZ
fly | yes | `"on"`to start flying<br>`"off"` to stop flying
```

```snippet http-api-output-JAwUcmg7i7
```

# Example

Commands the bot to start flying:

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("fly", [
  "fly", "on"
]);
```