inAreaArrayIndexes

From Bohemia Interactive Community
Revision as of 16:41, 20 February 2023 by Killzone Kid (talk | contribs)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.14.

Description

Description:
Checks if positions given in Array of positions are within the given area and returns the indexes of matching elements.
Groups:
TriggersMarkersLocationsGroups

Syntax

Syntax:
positions inAreaArrayIndexes area
Parameters:
positions: Array of Objects and/or Positions and/or Locations and/or Strings and/or Groups, where:
area: Array or Object or Location or String, where:
  • Array - in format [center, a, b, angle, isRectangle, c] or polygon in format [point1, point2, point2,...]
  • Object - trigger
  • Location - location
  • String - marker
Return Value:
Array of Numbers - indexes of matching elements in 'positions' Array

Examples

Example 1:
allUnits inAreaArrayIndexes myTrigger;
Example 2:
allMapMarkers inAreaArrayIndexes "myMarker";
Example 3:
allPlayers inAreaArrayIndexes myLocation;
Example 4:
allGroups inAreaArrayIndexes [[100, 100, 0], 20, 30, 45, false, 10];

Additional Information

See also:
inAreaArray inArea triggerArea

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