Jump to content

LoadWarehouseTemplates

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: LoadWarehouseTemplates
Function Description: Loads all Warehouse Inventory templates from the specified path into CMM.WAREHOUSES table with key of the filename without the .json extension
File Location: cmm.DCSFunctions.lua
Syntax: CMM.LoadWarehouseTemplates( string or nil WarehousesDir )
Return Value:
Parameters: Name Description
WarehousesDirOptional Directory path to load the Warehouse templates from, if nil it will use CMM.WAREHOUSEDIR
Example: CMM.LoadWarehouseTemplates()
Example Description: This will load the Warehouse templates from CMM.WAREHOUSEDIR into the CMM.WAREHOUSES table
Related Functions:
Notes: