Jump to content

DrawCircle

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawCircle – created via PowerShell script (2025-11-11T21:12:14Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawCircle
Function Description: Draws a simple circular marker on the map.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawCircle( table vec3 , number or nil lineType , table or nil colour , table or nil colourF , number or nil coal , number or nil size )
Return Value: number or nil
Parameters: Name Description
vec3The centre of the circle (vec3 {x=…, y=…, z=…}).
lineTypeLineType 0 No Line, 1 Solid, 2 Dashed, 3 Dotted, 4 Dot Dash, 5 Long Dash, 6 Two Dash [DEFAULT: 1]
colourLine colour as an RGBA table. Defaults to white.
colourFFill colour as an RGBA table. Defaults to half‑transparent white.
coalCoalition of the marker (-1 = all, 0 = neutral, 1 = red, 2 = blue). Default is -1.
sizeRadius of the circle in metres. Default is 50.
Example: CMM.DrawCircle({x=1000, y=0, z=2000}, {r=1,g=0,b=0,a=1}, {r=0,g=0,b=0,a=0.5}, 0, 200)
Example Description: Draws a 200 metre red circle with a semi‑transparent black fill centred on (1000, 0, 2000).
Related Functions:
Notes: