CreateSmoke
Appearance
| 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 |
| coord | The 3D position where the smoke effect should be created. | |
| color | Optional 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: | ||