Jump to content

MarkupToAll

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (markupToAll – 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: 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
vec3TblREQUIRED table of one or more Vec3 variables {x,y,z} or {{x,y,z},{x,y,z},{x,y,z},{x,y,z}}
shapeID1 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]
lineType0 No Line, 1 Solid, 2 Dashed, 3 Dotted, 4 Dot Dash, 5 Long Dash, 6 Two Dash [DEFAULT: 1]
readOnlyMarker visibility flag (read‑only) [DEFAULT False]
msgOptional 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: