Difference between revisions of "MIST hex getFromRoute"
From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.hex.getFromRoute| |vNum = Mist 4.6 |desc= Returns a table indexed by hashed hex values that are contained within the route passed. If the o...") |
(No difference)
|
Latest revision as of 22:57, 8 September 2026
mist.hex.getFromRoute
| Added with: Mist 4.6 |
| Description |
| Returns a table indexed by hashed hex values that are contained within the route passed. If the optional entry of "fill" is passed then the table returned will contain all of the hexes inside of the shape.
This function has two main uses. 1. To define an outline of a polygon for use with mist.hex.aStar as something to path around like an island or coastline. 2. To define hex ownership over an area. Create a route for a group roughly shaped like a country from a map in DCS, call this function with fill passed, and voila you have a table of hexes that make up that country. |
| Syntax |
| table mist.hex.getFromRoute(table points , boolean fill ) |
| Valid Input Values: |
| Return value: |
| table |
| Return example: |
| Usage Examples: |
| Notes: |
| Related Functions |
| to, getRadius, setRadius, add, subtract,scale, rotate_left, rotate_right, neighbor, getNeighborCount, diagonalNeighbor, length, distance, round, lerp, cubeScale, cubeRing, cubeSpiral, lineDraw, cubeToAxial, axialToCube, pointToHex, makeVek2, makeVec3, makeVec3GL, hash, hashToHex, draw, aStar, getFromRoute |
