MarkerRemoveGroup
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkerRemoveGroup | |
| Function Description: | 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. | |
| File Location: | cmm.MapCommandFunctions.lua | |
| Syntax: | CMM.MarkerRemoveGroup( table EventData ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| EventData | S_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: BlueGroup") | |
| Example Description: | 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 Functions: | ||
| Notes: | --TODO Place holder until group removal system built | |