inAreaArray

From Bohemia Interactive Community
Revision as of 11:28, 13 May 2022 by Lou Montana (talk | contribs) (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Jump to navigation Jump to search

{{RV|type=command

|game1= arma3 |version1= 1.66

|gr1= Triggers

|gr2= Markers

|gr3= Locations

|gr4= Positions

|descr= Returns given list of Objects and/or Positions that are in the given area, area defined by a trigger, marker, location or array.

|s1= positions inAreaArray area

|p1= positions: Array of Objects and/or Positions

|p2= area: Object, Location or String - the defined area:

|r1= Array: Objects and/or Positions inside the trigger area

|s2= positions inAreaArray [center, a, b, angle, isRectangle, c]

|p21= positions: Array - Objects and/or Positions to check

|p22= center: Array - center of the area in format Position3D, Position2D

|p23= a: Number - x axis (x / 2)

|p24= b: Number - y axis (y / 2)

|p25= angle: Number - (Optional, default 0) rotation angle

|p26= isRectangle: Boolean - (Optional, default false) true if rectangle, false if ellipse

|p27= c: Number - (Optional, default -1: unlimited) z axis (z / 2)

|r2= Array: Objects and/or Positions inside the area

|x1=

vehicles inAreaArray myTrigger;

|x2=

allUnits inAreaArray "myMarker";

|x3=

allPlayers inAreaArray myLocation;

|x4= allDead inAreaArray [[100, 100, 0], 20, 30, 45, false, 10];

|seealso= inArea triggerArea }}

Posted on June 11, 2017 - 21:33 (UTC)
Tankbuster
The array you send the command can be filtered. For example: vehicles select { _x isKindOf "StaticWeapon" } inAreaArray "myMarker" Will return only the statics inside the given marker