MIST hexTo

From DCS World Wiki - Hoggitworld.com
Revision as of 00:34, 1 September 2026 by Grimes (talk | contribs) (Created page with "{{Mission Scripting |fName= mist.hex.to| |vNum = Mist 4.6 |desc= Converts the 3 passed values into a cube based coordinate system for the hex. | |rtnType= qrs |reqType1=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.hex.to

Added with: Mist 4.6
Description
Converts the 3 passed values into a cube based coordinate system for the hex.
Syntax
qrs mist.hex.to(number q index ,number r index ,number s index )
Valid Input Values:
Return value:
qrs
Return example:
{q = -1, r = 0, s = 1}
Usage Examples:
local hx = mist.hex.to(-1, 0, 1)
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