nearestLocationWithDubbing: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Locations | |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}}.}} | {{Feature|arma3|No locations are dubbed in {{arma3}}.}} | ||
| [[nearestLocationWithDubbing]] position | | [[nearestLocationWithDubbing]] position | ||
|p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]] | |p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]] | ||
| [[Location]] | | [[Location]] | ||
|x1= <code>_location = [[nearestLocationWithDubbing]] [[player]];</code> | |x1= <code>_location = [[nearestLocationWithDubbing]] [[player]];</code> | ||
|x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code> | |x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code> | ||
| [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] | | [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:30, 18 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