Jump to content

CreateSmoke

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (CreateSmoke – created via PowerShell script (2025-11-11T21:12:23Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: CreateSmoke
Function Description: Creates a smoke effect at a specified coordinate with an optional color, defaulting to white if no color is provided. The function maps color strings to predefined smoke colors and logs the selected color to the environment log.
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.CreateSmoke( table coord , string color )
Return Value: nil
Parameters: Name Description
coordThe 3D position where the smoke effect should be created.
colorOptional color name for the smoke effect; valid values are green, red, white, orange, or blue; defaults to white if not specified.
Example: CMM.CreateSmoke({x=100,y=200,z=50}, "red")
Example Description: Creates a red smoke effect at the position {x=100,y=200,z=50} and logs the color selection to the environment log.
Related Functions:
Notes: