Jump to content

SaveSupportTable

From CMM Wiki
Revision as of 12:27, 24 June 2026 by Ozdeadmeat (talk | contribs) (SaveSupportTable – created via PowerShell script (2026-06-24T22:27:05Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 , boolean or nil DumpLua )
Return Value: nil
Parameters: Name Description
FilePathOptional path to save the CMM.PERSISTENCE_SUPPORTAIRCRAFT.json file; if not provided, defaults to CMM.MISSION.PDir .. "CMM.PERSISTENCE_SUPPORTAIRCRAFT.json".
DumpLuaOptional, will save out the SUPPORT_TABLE.lua file to the CMM.DUMPDIR if true, defaults to false if not provided.
Example: CMM.SaveSupportTable("Custom/CMM.PERSISTENCE_SUPPORTAIRCRAFT.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: