Jump to content

GatherDebugEventData

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: GatherDebugEventData
Function Description: Adds a sortie event to the sortie tracking system using a custom event table, enabling post-event processing such as scoring, notifications, and sortie bank scheduling. The function accepts a table with event data and processes it accordingly.
File Location: cmm.XpFunctions.lua
Syntax: CMM.GatherDebugEventData( table EventData )
Return Value: table
Parameters: Name Description
EventDataTable containing event data from a DCS event, including initiator and other items
Example: CMM.GatherDebugEventData({id = world.event.S_EVENT_LAND, initiator = unit, place = location})
Example Description: This would return an event events and schedules a sortie bank task after a land event, ensuring proper scoring and notification logic is applied.
Related Functions:
Notes: