Difference between revisions of "nearestLocationWithDubbing"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) (Add Arma 3 note) |
||
Line 1: | Line 1: | ||
− | {{Command|= | + | {{Command|Comments= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | arma2 | | + | | arma2 |Game name= |
− | |1.00| | + | |1.00|Game version= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | Find the nearest location | + | | Find the nearest location having a non-empty speech. |
+ | {{Feature Arma3|No locations are dubbed in {{arma3}}.}}|Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | | + | | [[nearestLocationWithDubbing]] position |Syntax= |
− | |p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]] |= | + | |p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]] |PARAMETER1 = |
− | | | + | | [[Location]] |RETURNVALUE= |
− | | | + | |x1= <code>_location = [[nearestLocationWithDubbing]] [[player]];</code>|EXAMPLE1= |
− | | [[ | + | |x2= <code>_location = [[nearestLocationWithDubbing]] [[getMarkerPos]] "myMarker";</code>|EXAMPLE2= |
− | |||
− | |||
− | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] |= | + | | [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearObjectsReady]], [[nearRoads]] |SEEALSO= |
− | | |= | + | | |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|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Locations]] | [[Category:Command_Group:_Locations]] |
Revision as of 16:57, 17 March 2019
Hover & click on the images for descriptions
Description
- Description:
- Find the nearest location having a non-empty speech. Template:Feature Arma3
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
- Groups:
- Uncategorised