MarkupToAll
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | markupToAll | |
| Function Description: | Draws a shape marker visible to all coalition units at the specified coordinates. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.markupToAll( table vec3Tbl , number or nil shapeID , number or nil coal , table or nil colour , table or nil fillColour , number or nil lineType ,boolean or nil readOnly , string or nil msg ) | |
| Return Value: | number or nil | |
| Parameters: | Name | Description |
| vec3Tbl | REQUIRED table of one or more Vec3 variables {x,y,z} or {{x,y,z},{x,y,z},{x,y,z},{x,y,z}} | |
| shapeID | 1 Line, 2 Circle, 3 Rect, 4 Arrow, 5 Text, 6 Quad, 7 Freeform [DEFAULT: 7] | |
| 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.HalfBlack] | |
| lineType | 0 No Line, 1 Solid, 2 Dashed, 3 Dotted, 4 Dot Dash, 5 Long Dash, 6 Two Dash [DEFAULT: 1] | |
| readOnly | Marker visibility flag (read‑only) [DEFAULT False] | |
| msg | Optional message to display on the marker. | |
| Example: | local id = CMM.markupToAll({x=0,y=0,z=0}, 2, -1, nil, nil, 1, false, "Test") | |
| Example Description: | Creates a circle (shapeID = 2) at the origin visible to all coalition units with an optional label “Test”. | |
| Related Functions: | ||
| Notes: | ||