Jump to content

SpawnSmoke

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (SpawnSmoke – created via PowerShell script (2025-11-11T21:12:41Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: SpawnSmoke
Function Description: Spawns a smoke effect at a specified coordinate with an optional color; defaults to white if no color is provided. Supports green, red, white, orange, and blue smoke colors, with a fallback to white if an invalid color is given.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.SpawnSmoke( table coord , string colour )
Return Value: nil
Parameters: Name Description
coord{x <number>, y <number>, z <number>} – 3D coordinate where the smoke should be spawned.
colouroptional color name, case-insensitive; valid values are green, red, white, orange, blue; defaults to white if not specified.
Example: CMM.SpawnSmoke({x=100,y=200,z=300}, "red")
Example Description: Spawns a red smoke effect at the coordinate (100,200,300).
Related Functions:
Notes: