Jump to content

Dump.Warehouse

From CMM Wiki
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: