MarkerSmartSmoke
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkerSmartSmoke | |
| Function Description: | Spawns a smoke effect at a given position based on a color command, with optional cost-based authorization. | |
| File Location: | cmm.MapCommandFunctions.lua | |
| Syntax: | CMM.MarkerSmartSmoke( table EventData , string PlayerUCID ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| EventData | Event data containing the text input and position from the marker interaction | |
| PlayerUCID | The unique player ID (UCID) of the player using the marker | |
| Example: | CMM.MarkerSmartSmoke({text="smoke:blue", pos= <vec3>}, "player123") | |
| Example Description: | Parses the input text to extract a smoke color (e.g., blue, green). If no color is specified, defaults to white. Supports: g (green), r (red), o (orange), b (blue), w (white). | |
| Related Functions: | ||
| Notes: | --TODO Function Work in Progress | |