{"name":"nearestLocationWithDubbing","operator":null,"title":"nearestLocationWithDubbing","type":"command","url":"https://community.bistudio.com/wiki/nearestLocationWithDubbing","revid":377422,"updated":"2026-01-02T06:45:33Z","groups":["Locations"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"position","type":"Object or PositionAGL or Position2D","optional":false,"default":null,"description":null,"types":["Object","PositionAGL","Position2D"],"since":null,"text":"position: Object or PositionAGL or Position2D"}],"returns":{"type":"Location","types":["Location"],"description":null,"text":"Location"},"form":"unary","operator":null,"left":null,"right":{"text":"position","types":["Object","PositionAGL","Position2D"]}}],"examples":[{"text":"```sqf\n_location = nearestLocationWithDubbing player;\n```","code":["_location = nearestLocationWithDubbing player;"]},{"text":"```sqf\n_location = nearestLocationWithDubbing getMarkerPos \"myMarker\";\n```","code":["_location = nearestLocationWithDubbing getMarkerPos \"myMarker\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["findNearestEnemy","nearestBuilding","nearestObject","nearestObjects","nearObjects","nearestLocation","nearEntities","nearTargets","nearSupplies","nearObjectsReady","nearRoads","nearestMines"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Locations","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}