nearestLocationWithDubbing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|gr1= Locations |GROUP1=
|gr1= Locations


| 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}}.}}


| [[nearestLocationWithDubbing]] position |Syntax=
| [[nearestLocationWithDubbing]] position


|p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]] |PARAMETER1 =
|p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]]


| [[Location]] |RETURNVALUE=
| [[Location]]


|x1= <code>_location = [[nearestLocationWithDubbing]] [[player]];</code>|EXAMPLE1=
|x1= <code>_location = [[nearestLocationWithDubbing]] [[player]];</code>


|x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code>|EXAMPLE2=
|x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code>




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


|  |MPBEHAVIOUR=
|  |MPBEHAVIOUR=

Revision as of 01:30, 18 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