DrawTriangle
Appearance
| 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 |
| vec3 | Position vector (x, y, z) where the triangle should be drawn. | |
| size | Distance from the centre to each vertex in metres (default 80 m). | |
| colour | RGBA outline colour ({r,g,b,a}), default {0.35,0,0,0.75} (dark red). | |
| colourFill | RGBA 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: | ||