{"name":"nearestLocationWithDubbing","title":"nearestLocationWithDubbing","type":"command","url":"https://community.bistudio.com/wiki/nearestLocationWithDubbing","revid":379228,"updated":"2026-10-30T23:00:51Z","groups":["Locations"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Find the nearest location having a non-empty speech.\n\n> [!NOTE]\n> **Arma 3:** No locations are dubbed in Arma 3.","syntaxes":[{"syntax":"nearestLocationWithDubbing position","params":[{"name":"position","type":"PositionAGL or Position2D","type_expr":"PositionAGL | Position2D"}],"returns":{"type":"Location","type_expr":"Location"},"form":"unary","right":{"text":"position"}}],"examples":[{"code":["_location = nearestLocationWithDubbing ASLToAGL getPosASL player;"]},{"code":["_location = nearestLocationWithDubbing getMarkerPos \"myMarker\";"]}],"see_also":["findNearestEnemy","nearestBuilding","nearestObject","nearestObjects","nearObjects","nearestLocation","nearEntities","nearTargets","nearSupplies","nearObjectsReady","nearRoads","nearestMines"]}