Jump to content

DrawReconArea

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawReconArea – created via PowerShell script (2025-11-11T21:12:13Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawReconArea
Function Description: Draws a circular recon‑area marker around the specified center point.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawReconArea( table center , number or nil maxRange , number or nil addHeight , number or nil coal , table or nil colour , table or nil fillColour ,number or nil lineType )
Return Value: number or nil
Parameters: Name Description
centerREQUIRED vec3 {x=, y=, z=}
maxRangeMaximum range in meters [DEFAULT: 5000]
addHeightAdd height to unit position [DEFAULT: 10]
coal-1 All, 0 Neutral, 1 Red, 2 Blue [DEFAULT: -1]
colour{r=, g=, b=, a=} color components (0‑1) [DEFAULT: CMM.Marker.Colour.Black]
fillColour{r=, g=, b=, a=} color components (0‑1) [DEFAULT: CMM.Marker.Colour.HalfLightGrey]
lineType0 No Line, 1 Solid, 2 Dashed, 3 Dotted, 4 Dot Dash, 5 Long Dash, 6 Two Dash [DEFAULT: 1]
Example: local id = CMM.DrawReconArea(Unit.getByName("RECON-1"):getPoint(), 5000)
Example Description: Draws a 5 km radius recon area around the unit “RECON‑1”.
Related Functions:
Notes: