Jump to content

MarkerRemoveEffectSmoke

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (MarkerRemoveEffectSmoke – created via PowerShell script (2025-11-11T21:12:22Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: MarkerRemoveEffectSmoke
Function Description: Removes smoke effect from a marker when it is removed, using the provided event data and unit ID to determine position and clear the effect after a timer.
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.MarkerRemoveEffectSmoke( table EventData , number UnitID )
Return Value: nil
Parameters: Name Description
EventDataCustom Event Table passed by S_EVENT_MARK_REMOVED EventHandler containing pos field for position.
UnitIDCustom Event Table passed by S_EVENT_MARK_REMOVED EventHandler representing the unit ID of the marker being removed.
Example: CMM.MarkerRemoveEffectSmoke({pos = <vec3>}, 12345)
Example Description: Demonstrates removing smoke effect from a marker at position {x=100,y=20.0,z=300} with unit ID 12345.
Related Functions:
Notes: Map Command !removeeffect