Jump to content

DrawTriangle

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawTriangle – 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: DrawTriangle
Function Description: Draws an equilateral triangle marker at the supplied world position.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawTriangle( table vec3 , number size , table colour , table colourFill )
Return Value: table
Parameters: Name Description
vec3Position vector (x, y, z) where the triangle should be drawn.
sizeDistance from the centre to each vertex in metres (default 80 m).
colourRGBA outline colour ({r,g,b,a}), default {0.35,0,0,0.75} (dark red).
colourFillRGBA fill colour ({r,g,b,a}), default {0.7,0,0,0.35} (light red).
Example: CMM.DrawTriangle({x=500,y=100,z=-200},90,{1,0,0,0.8},{1,0,0,0.4})
Example Description: Draws a 90 m triangle marker at the specified coordinates with a red outline and semi‑transparent fill.
Related Functions:
Notes: