MIST getUnitsInPolygon
From DCS World Wiki - Hoggitworld.com
Revision as of 23:01, 19 January 2023 by Grimes (talk | contribs) (Grimes moved page MIST getUnitsInPoly to MIST getUnitsInPolygon without leaving a redirect: Mixup on the function and page name.)
mist.getUnitsInPolyZone
Added with: Mist 3.5 |
Description |
Returns a table of units from the table unitNameTable that are inside of the polygon zone. |
Syntax |
table mist.getUnitsInPolyZone(table unitNameTable ,table poly , number maxAlt ) |
Valid Input Values: |
unitNameTable: mist.makeUnitTable({"[blue][helicopter]"})
poly: mist.getGroupPoints('polyPath1') maxAlt: 200 |
Return value: |
table |
Return example: |
unitNameTable |
Usage Examples: |
|
Notes: |
Units must be activated to be counted as inside the zone. |
Related Functions |
makeUnitTable, getRandPointInCircle, getRandomPointInZone, getRandomPointInPoly, isTerrainValid, terrainHeightDiff, getUnitsInZones, getUnitsInMovingZones, pointInPolygon, getUnitsInPolygon, getDeadMapObjsInZones, getDeadMapObjsInPolygonZone, getUnitsLOS, random, randomizeNumTable, getAvgPoint, getQFE, getWindBearingAndVel, getPathLength, getPathInSegments, getPointAtDistanceOnPath, projectPoint, getGroupsByAttribute, , getUnitsByAttribute, mapValue, |