inAreaArray: Difference between revisions
Jump to navigation
Jump to search
(stable) |
Killzone Kid (talk | contribs) (stable cannot be an odd number) |
||
Line 4: | Line 4: | ||
| arma3 |= Game | | arma3 |= Game | ||
|1. | |1.66|= Game Version (number surrounded by NO SPACES) | ||
|arg= |= Multiplayer Arguments ("local" or "global") | |arg= |= Multiplayer Arguments ("local" or "global") |
Revision as of 22:44, 1 December 2016
Description
- Description:
- Filters given list of Objects and/or Positions in relation to the given area, defined by a trigger, marker, location or array. Returns array of Objects and/or Positions from the list that are inside the area
- Multiplayer:
- -
- Groups:
- Uncategorised
Syntax 1
- Syntax:
- positions inAreaArray trigger
- Parameters:
- positions: Array - Objects and/or Positions to check
- trigger: Object - trigger with given area
- Return Value:
- Array: Objects and/or Positions inside the trigger area
Syntax 2
- Syntax:
- positions inAreaArray marker
- Parameters:
- positions: Array - Objects and/or Positions to check
- marker: String - marker with given area
- Return Value:
- Array: Objects and/or Positions inside the marker area
Syntax 3
- Syntax:
- positions inAreaArray location
- Parameters:
- positions: Array - Objects and/or Positions to check
- location: Location - location with given area
- Return Value:
- Array: Objects and/or Positions inside the location area
Syntax 4
- Syntax:
- positions inAreaArray [center, a, b, angle, isRectangle, c]
- Parameters:
- positions: Array - Objects and/or Positions to check
- [center, a, b, angle, isRectangle, c]: Array
- center: Array or Object - center of the area in format Position3D, Position2D, Object or Group
- a: Number - x axis (x / 2)
- b: Number - y axis (y / 2)
- angle (Optional): Number - rotation angle. Default: 0
- isRectangle (Optional): Boolean - true if rectangle, false if ellipse. Default: false
- c (Optional): Number - z axis (z / 2). Default: -1 (unlimited)
- Return Value:
- Array: Objects and/or Positions inside the area
Examples
- Example 1:
vehicles inAreaArray trigger_1;
- Example 2:
allUnits inAreaArray marker_1;
- Example 3:
allPlayers inAreaArray location_1;
- Example 4:
allDead inAreaArray [[100, 100, 0], 20, 30, 45, false, 10];
Additional Information
- See also:
- inAreatriggerArea
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