SpawnSmoke
Appearance
| 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. | |
| colour | optional 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: | ||