nearestLocationWithDubbing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add Arma 3 note)
(4 intermediate revisions by 4 users not shown)
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: [[Array]] - |= 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


____________________________________________________________________________________________
____________________________________________________________________________________________


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


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}


Line 42: Line 39:
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Locations]]

Revision as of 17:57, 17 March 2019

Hover & click on the images for description

Description

Description:
Find the nearest location having a non-empty speech. Template:Feature Arma3
Groups:
Uncategorised

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