DrawDiamond
Appearance
| 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 |
| vec3 | World coordinates of the laser point where the diamond should be drawn. | |
| size | Length from the centre to any vertex (diamond side‑length / 2). Default 80 m. | |
| colour | RGBA colour for the outline ({r,g,b,a}), default {0.35,0,0,0.75} (dark red). | |
| colourFill | RGBA 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: | ||