DrawReconArea
Appearance
| 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 |
| center | REQUIRED vec3 {x=, y=, z=} | |
| maxRange | Maximum range in meters [DEFAULT: 5000] | |
| addHeight | Add 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] | |
| lineType | 0 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: | ||