Jump to content

SaveSupportTable

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: SaveSupportTable
Function Description: Saves the current AirSupportTable configuration to a JSON file in the mission directory, ensuring the directory exists and handling errors gracefully if the table or path is invalid.
File Location: cmm.persistence.lua
Syntax: CMM.SaveSupportTable( string or nil FilePath )
Return Value: nil
Parameters: Name Description
FilePathOptional path to save the AirSupportTable.json file; if not provided, defaults to CMM.MISSION.PDir .. "AirSupportTable.json".
Example: CMM.SaveSupportTable("Custom/AirSupportTable.json")
Example Description: Saves the current air support configuration to a custom JSON file, creates the directory if needed, and logs warnings if the table is missing or the path is invalid.
Related Functions:
Notes: