Jump to content

DrawSmoke

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawSmoke – created via PowerShell script (2025-11-11T21:12:15Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
vec3Position of the centre point ({x=…, y=…, z=…}).
scaleScale multiplier for the smoke shape. Default is 1.
colourRGBA colour used for the polygon fill. Default is CMM.Marker.Colour.Black.
coalCoalition of the marker (-1 = all, 0 = neutral, 1 = red, 2 = blue). Default is -1.
schedIf 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: