DrawSmoke
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | DrawSmoke | |
| Function Description: | Creates a smoke‑like polygonal marker at the supplied position. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.DrawSmoke( table vec3 , number or nil scale , table or nil colour , number or nil coal , boolean or nil sched ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| vec3 | Position of the centre point ({x=…, y=…, z=…}). | |
| scale | Scale multiplier for the smoke shape. Default is 1. | |
| colour | RGBA colour used for the polygon fill. Default is CMM.Marker.Colour.Black. | |
| coal | Coalition of the marker (-1 = all, 0 = neutral, 1 = red, 2 = blue). Default is -1. | |
| sched | If true, the smoke fades after a short delay and is then removed. | |
| Example: | CMM.DrawSmoke({x=0,y=0,z=0}, 2, {r=1,g=0,b=0,a=0.5}, 1, true) | |
| Example Description: | Draws a red smoke polygon centred on (0 , 0 , 0) that will fade and disappear after ~300 seconds. | |
| Related Functions: | ||
| Notes: | ||