Jump to content

DrawDiamond

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawDiamond – created via PowerShell script (2025-11-11T21:12:17Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawDiamond
Function Description: Draws a diamond‑shaped (rotated square) marker at the specified laser position.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawDiamond( table vec3 , number size , table colour , table colourFill )
Return Value: table
Parameters: Name Description
vec3World coordinates of the laser point where the diamond should be drawn.
sizeLength from the centre to any vertex (diamond side‑length / 2). Default 80 m.
colourRGBA colour for the outline ({r,g,b,a}), default {0.35,0,0,0.75} (dark red).
colourFillRGBA colour for the fill ({r,g,b,a}), default {0.7,0,0,0.35} (light red).
Example: CMM.DrawDiamond({x=1000,y=200,z=-500},120,{1,0,0,0.8},{1,0,0,0.4})
Example Description: Draws a 120 m diamond marker at the given coordinates with a red outline and semi‑transparent fill.
Related Functions:
Notes: