Difference between revisions of "MIST getUnitsInMovingZones"

From DCS World Wiki - Hoggitworld.com
 
(No difference)

Latest revision as of 22:59, 13 April 2018


mist.getUnitsInMovingZones

Added with: Mist 1.0
Description
Returns a table of units from the table unitNameTable that are within a radius projects from the units of zoneUnitNames
Syntax
table mist.getUnitsInMovingZones(table unitNameTable ,table zoneUnitNames ,number radius , string zoneType )
Valid Input Values:
unitNameTable= unitNameTable

ZoneUnitNames= unitNameTable

zoneType=

'cylinder' - cylindrical shaped zone extending to +/- infinity in altitude. 
'sphere' - spherical zone
Return value:
table
Return example:
unitNameTable
Usage Examples:

do

--code needed 

end

Notes:
Is called by and is related to Units_in_moving_zones
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,

Scripting Engine

MIST Root Page