Jump to content

Dump.Warehouse

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (dump.Warehouse – 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.Warehouse
Function Description: Dumps warehouse inventory data for a specified airbase object, extracting details such as ID, editor name, display name, and inventory contents, then saves the data to a JSON file named after the airbase's display name.
File Location: cmm.tools.lua
Syntax: CMM.dump.Warehouse( 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.Warehouse(AirB)
Example Description: Invokes the function with an airbase object to extract and save its warehouse inventory data to a file named after the airbase's display name.
Related Functions:
Notes: