DrawCircle
Appearance
| 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 |
| vec3 | The centre of the circle (vec3 {x=…, y=…, z=…}). | |
| lineType | LineType 0 No Line, 1 Solid, 2 Dashed, 3 Dotted, 4 Dot Dash, 5 Long Dash, 6 Two Dash [DEFAULT: 1] | |
| colour | Line colour as an RGBA table. Defaults to white. | |
| colourF | Fill colour as an RGBA table. Defaults to half‑transparent white. | |
| coal | Coalition of the marker (-1 = all, 0 = neutral, 1 = red, 2 = blue). Default is -1. | |
| size | Radius 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: | ||