Jump to content

Dump.AirBase

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (dump.AirBase – created via PowerShell script (2025-11-11T21:12:50Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: dump.AirBase
Function Description: Dumps comprehensive airbase data including ID, editor name, display name, warehouse inventory, type name, callsign, runways, and location point, then saves the data to a JSON file named after the airbase's display name.
File Location: cmm.tools.lua
Syntax: CMM.dump.AirBase( table AirB )
Return Value: string
Parameters: Name Description
AirBAirbase object retrieved from the mission editor. Must be a valid airbase object; otherwise, an info message is logged and no file is created.
Example: CMM.dump.AirBase(AirB)
Example Description: Invokes the function with an airbase object to extract and save its full data including inventory, callsign, and runways to a file named after the airbase's display name.
Related Functions:
Notes: