nearestLocationWithDubbing: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) 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
Description
- Description:
- Find the nearest location having a non-empty speech.
- 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