DrawRepair
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | DrawRepair | |
| Function Description: | Draws a repair‑area marker (cog shape, circle and hammer) at the specified laser position. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.DrawRepair( table vec3 , number size , table colour , table colourFill ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| vec3 | The centre of the repair area ({x=…, y=…, z=…}). | |
| size | Base radius in metres (default 150). Larger values produce a larger marker. | |
| colour | Line colour as an RGBA table. Defaults to COLOURS.DarkGrey. | |
| colourFill | Fill colour as an RGBA table. Defaults to COLOURS.Grey. | |
| Example: | CMM.DrawRepair({x=0,y=0,z=0}, 200, {r=1,g=0,b=0,a=1}, {r=1,g=1,b=1,a=0}) | |
| Example Description: | Draws a repair marker centred on (0 , 0 , 0) with a 200‑metre radius, red outline and semi‑transparent white fill. | |
| Related Functions: | ||
| Notes: | ||