Jump to content

DrawMGRSGrid

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawMGRSGrid – created via PowerShell script (2025-11-11T21:12:16Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawMGRSGrid
Function Description: Draws an MGRS grid marker using four corner points.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawMGRSGrid( table argTbl )
Return Value: table or nil
Parameters: Name Description
argTblMarker Argument Table (TL, BL, BR, TR corners; optional fillColour, lineColour, lineType, coalition).
Example: CMM.DrawMGRSGrid(TL={x=0,y=0,z=0}, BL={x=1000,y=0,z=0}, BR={x=1000,y=0,z=-1000}, TR={x=0,y=0,z=-1000})
Example Description: Draws a 1 km × 1 km MGRS grid centred at the origin and returns its Marker ID.
Related Functions:
Notes: