Jump to content

DrawMGRSGrid

From CMM Wiki
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: