Dump.AirBase
Appearance
| 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 |
| AirB | Airbase 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: | ||