Jump to content

Dump.AirBases

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: dump.AirBases
Function Description: Extracts and dumps detailed information about airbases and helipads in the current theatre, filtering by category and optional configuration. It retrieves data such as ID, name, type, callsign, parking, runways, and location, then saves it to a JSON file in the mission directory.
File Location: cmm.tools.lua
Syntax: CMM.dump.AirBases( table DumpConfig )
Return Value:
Parameters: Name Description
DumpConfigConfiguration table that controls which fields to include in the CMM.dump. Fields include id, displayName, getAirbase, getHelipad, getShipBase, typeName, callsign, parking, runways, and point. Each field defaults to true unless specified otherwise.
Example: CMM.dump.AirBases()
Example Description: Invokes the function with default configuration to extract and save all airbases and helipads to a JSON file in the mission directory.
Related Functions:
Notes: