Jump to content

MarkerSmartSmoke

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (MarkerSmartSmoke – created via PowerShell script (2025-11-11T21:12:20Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
EventDataEvent data containing the text input and position from the marker interaction
PlayerUCIDThe 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