Jump to content

MarkerRemoveGroup: Difference between revisions

From CMM Wiki
MarkerRemoveGroup – created via PowerShell script (2025-11-11T21:12:25Z)
Tag: Recreated
 
m MarkerRemoveGroup – created via PowerShell script (2026-06-24T22:26:59Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          MarkerRemoveGroup|fDescription=  Removes a group nearest to the marker position by parsing event data to determine the coalition and side, then extracts the group name from the marker text to identify which unit group should be removed.|parentFile=    cmm.MapCommandFunctions.lua|syntax=        CMM.MarkerRemoveGroup(EventData <TBL>)|return=        nil|returnDesc=    Returns Nothing after processing the event and removing the group based on coalition and text.|example=        CMM.MarkerRemoveGroup({pos = <vec3>, text = "Remove: BlueGroup")|exampleDesc=    Processes a marker removal event for a BlueGroup on the BLUE side at position (50, 100, 0), using the initiator's coalition to determine side and extract group name from the text.|related=        |note=          --TODO Place holder until group removal system built|envType= CMM|par1=        table EventData|reqType1=    table|reqName1=    EventData|desc1=      S_EVENT_MARK_REMOVED Event Table containing position, text, and initiator data; used to determine coalition, side, and group name to remove.}}
{{Template:FunctionInfo|fName=          MarkerRemoveGroup|fDescription=  Removes a group nearest to the marker position of a given coaltion if provided|parentFile=    cmm.MapCommandFunctions.lua|syntax=        CMM.MarkerRemoveGroup(EventData <TBL>)|return=        nil|returnDesc=    Returns Nothing after processing the event and removing the group based on coalition and text.|example=        CMM.MarkerRemoveGroup({pos = <vec3>, text = "Remove: blue")|exampleDesc=    Processes a marker removal event a BLUE side group at positions, reports the name of the group removed to the executer of the command.|related=        |note=          |envType= CMM|par1=        table EventData|reqType1=    table|reqName1=    EventData|desc1=      S_EVENT_MARK_REMOVED Event Table containing position, text, and initiator data; used to determine coalition, side, and group name to remove.}}

Latest revision as of 12:26, 24 June 2026

Return to CMM Command Reference
Environment: Mission Scripting
Function: MarkerRemoveGroup
Function Description: Removes a group nearest to the marker position of a given coaltion if provided
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.MarkerRemoveGroup( table EventData )
Return Value: nil
Parameters: Name Description
EventDataS_EVENT_MARK_REMOVED Event Table containing position, text, and initiator data; used to determine coalition, side, and group name to remove.
Example: CMM.MarkerRemoveGroup({pos = <vec3>, text = "Remove: blue")
Example Description: Processes a marker removal event a BLUE side group at positions, reports the name of the group removed to the executer of the command.
Related Functions:
Notes: