Jump to content

GenerateSortieReport

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: GenerateSortieReport
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. Can be executed during a sortie
File Location: cmm.XpFunctions.lua
Syntax: CMM.GenerateSortieReport( table Aircraft , string UCID )
Return Value: string or nil,number or nil,number or nil
Parameters: Name Description
AircraftAircraft (unit) table containing the unit data of the aircraft for which the sortie report is being generated.
UCIDThe unique client ID of the player for whom the sortie report
Example: CMM.GenerateSortieReport(Unit.getByName("PlayerUnit"), "UCID")
Example Description: This would generate a sortie report for the specified player's aircraft, including a breakdown of events, total sortie time, and score earned, which can then be used for notifications and banking the sortie score.
Related Functions:
Notes: