nearestLocationWithDubbing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


|gr1= Locations |GROUP1=
|gr1= Locations |GROUP1=
____________________________________________________________________________________________


| Find the nearest location having a non-empty speech.
| Find the nearest location having a non-empty speech.
{{Feature|arma3|No locations are dubbed in {{arma3}}.}}|Description=
{{Feature|arma3|No locations are dubbed in {{arma3}}.}}|Description=
____________________________________________________________________________________________


| [[nearestLocationWithDubbing]] position |Syntax=
| [[nearestLocationWithDubbing]] position |Syntax=
Line 23: Line 20:
|x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code>|EXAMPLE2=
|x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code>|EXAMPLE2=


____________________________________________________________________________________________


| [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] |SEEALSO=
| [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] |SEEALSO=

Revision as of 01:56, 17 January 2021

Hover & click on the images for description

Description

Description:
Find the nearest location having a non-empty speech.
Arma 3
No locations are dubbed in Arma 3.
Groups:
Locations

Syntax

Syntax:
nearestLocationWithDubbing position
Parameters:
position: Object or Array in format PositionAGL or Position2D
Return Value:
Location

Examples

Example 1:
_location = nearestLocationWithDubbing player;
Example 2:
_location = nearestLocationWithDubbing getMarkerPos "myMarker";

Additional Information

See also:
findNearestEnemynearestBuildingnearestObjectnearestObjectsnearObjectsnearestLocationnearEntitiesnearTargetsnearSuppliesnearObjectsReadynearRoads

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section