Jump to content

MarkerForceCapture

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: MarkerForceCapture
Function Description: Sets the closest Airbase to the desired coalition
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.MarkerForceCapture( table EventData )
Return Value: nil
Parameters: Name Description
EventDataS_EVENT_MARK_REMOVED Event Table containing initiator information and event context.
Example: CMM.MarkerForceCapture(EventData = {pos={x,y,z}, text = "!forcecap:red"})
Example Description: Will set the closest airbase to red coalition
Related Functions:
Notes: Map Command !forcecap --TODO Does not execute any side change code as the basecapture event does not trigger when a base is set to a coalition via the API