---
name: "nearestLocationWithDubbing"
type: command
status: ok
groups: ["Locations"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/nearestLocationWithDubbing
revid: 377422
updated: 2026-01-02T06:45:33Z
---

# nearestLocationWithDubbing

*Command · Locations · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Find the nearest location having a non-empty speech.

> [!NOTE]
> **Arma 3:** No locations are dubbed in Arma 3.

## Syntax

```sqf
nearestLocationWithDubbing position
```

**Parameters:**

- `position`: [Object](../topics/Object.md) or [PositionAGL](../topics/Position.md#positionagl) or [Position2D](../topics/Position.md#introduction)

**Returns:** [Location](../topics/Location.md)

## Examples

### Example 1

```sqf
_location = nearestLocationWithDubbing player;
```

### Example 2

```sqf
_location = nearestLocationWithDubbing getMarkerPos "myMarker";
```

## See also

[findNearestEnemy](../commands/findNearestEnemy.md) · [nearestBuilding](../commands/nearestBuilding.md) · [nearestObject](../commands/nearestObject.md) · [nearestObjects](../commands/nearestObjects.md) · [nearObjects](../commands/nearObjects.md) · [nearestLocation](../commands/nearestLocation.md) · [nearEntities](../commands/nearEntities.md) · [nearTargets](../commands/nearTargets.md) · [nearSupplies](../commands/nearSupplies.md) · [nearObjectsReady](../commands/nearObjectsReady.md) · [nearRoads](../commands/nearRoads.md) · [nearestMines](../commands/nearestMines.md)

<sub>Source: [BI Community Wiki — nearestLocationWithDubbing](https://community.bistudio.com/wiki/nearestLocationWithDubbing) (revision 377422).</sub>
