Difference between revisions of "MIST hex cubeRing"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.hex.cubeRing| |vNum = Mist 4.6 |desc= Returns a table of hashed hex entries in a ring at a distance of the radius from a center hex. This...")
 
 
Line 14: Line 14:
 
|reqType1= table  
 
|reqType1= table  
  
|reqName1= centerQRF
+
|reqName1= centerQRS
  
 
|reqType2= number
 
|reqType2= number

Latest revision as of 23:34, 2 September 2026


mist.hex.cubeRing

Added with: Mist 4.6
Description
Returns a table of hashed hex entries in a ring at a distance of the radius from a center hex.

This function is used in mist.hexcubeSpiral to get the each ring of hexes. It is useful if you want to write your own spiral function to check assorted details of each hex as you iterate.

Syntax
table mist.hex.cubeRing(table centerQRS ,number radius )
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

Scripting Engine

MIST Root Page