Difference between revisions of "nearestLocationWithDubbing"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add Arma 3 note)
 
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma2 |= Game name
+
| arma2 |Game name=
  
|1.00|= Game version
+
|1.00|Game version=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Find the nearest location (to the given position) having it speech non-empty. |= Description
+
| Find the nearest location having a non-empty speech.
 +
{{Feature Arma3|No locations are dubbed in {{arma3}}.}}|Description=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| '''nearestLocationWithDubbing''' position |= Syntax
+
| [[nearestLocationWithDubbing]] position |Syntax=
  
|p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]]  |= PARAMETER1
+
|p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]]  |PARAMETER1 =
  
|p2= |= PARAMETER2
+
| [[Location]] |RETURNVALUE=
  
|p3= |= PARAMETER3
+
|x1= <code>_location = [[nearestLocationWithDubbing]] [[player]];</code>|EXAMPLE1=
  
| [[Location]] |= RETURNVALUE
+
|x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code>|EXAMPLE2=
 
 
 
 
|x1= <code>(example)</code>|= EXAMPLE1
 
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] |= SEEALSO
+
| [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] |SEEALSO=
  
|  |= MPBEHAVIOUR
+
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
 
 
}}
 
}}
  
Line 41: Line 38:
 
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
 
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 +
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
 
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
[[Category:Command_Group:_Locations]]
 
[[Category:Command_Group:_Locations]]

Latest revision as of 17:57, 17 March 2019

Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

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

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

Multiplayer:
-
See also:
findNearestEnemynearestBuildingnearestObjectnearestObjectsnearObjectsnearestLocationnearEntitiesnearTargetsnearSuppliesnearObjectsReadynearRoads

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section