# bot_location

Returns the current location of the bot.

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

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

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

## Input

This command has no additional input parameters.

```snippet http-api-output-JAwUcmg7i7
region | The name of the current region
x      | X position within the region
y      | Y position within the region
z      | Z position within the region
```

# Example

Returns the bot’s current location:

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