inAreaArrayIndexes: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |version1= 2.14 |branch= dev" to " |version1= 2.14") |
Lou Montana (talk | contribs) (Add AGL/ASL note) |
||
Line 14: | Line 14: | ||
|gr5= Groups | |gr5= Groups | ||
|descr= Returns positions | |descr= Returns indices of positions that are within the provided area. | ||
{{Feature|important|Unlike [[inAreaArray]], positions are [[Position#PositionASL|PositionASL]].}} | |||
|s1= positions [[inAreaArrayIndexes]] area | |s1= positions [[inAreaArrayIndexes]] area | ||
Line 26: | Line 28: | ||
|p2= area: [[Array]] or [[Object]] or [[Location]] or [[String]], where: | |p2= area: [[Array]] or [[Object]] or [[Location]] or [[String]], where: | ||
* [[Array]] - in format [ | * [[Array]] - in format: | ||
** [centre, a, b, angle, isRectangle, c] - area | |||
*** centre: [[Array]] format [[Position#PositionASL|PositionASL]] | |||
*** a: [[Number]] - area X size / 2, in metres | |||
*** b: [[Number]] - area Y size / 2, in metres | |||
*** angle: [[Number]] - area rotation in degrees | |||
*** isRectangle: [[Boolean]] - as the name says | |||
*** c: [[Number]] - area Z size / 2; -1 for infinite height | |||
** [point1, point2, point3, ...] - polygon | |||
* [[Object]] - trigger | * [[Object]] - trigger | ||
* [[Location]] - location | * [[Location]] - location |
Revision as of 12:55, 14 May 2024
Description
- Description:
- Returns indices of positions that are within the provided area.
- Groups:
- TriggersMarkersLocationsPositionsGroups
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:
- Return Value:
- Array of Numbers - indices of positions's matching elements
Examples
- Example 1:
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