Jump to content

LoadCities

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: LoadCities
Function Description: Loads city data from a JSON file corresponding to the current theatre.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.LoadCities( )
Return Value: nil
Parameters: Name Description
Example:
Example Description: Loads city data from a file named "<theatre>_Cities.json" located in the CMM.CITYDIR directory, where <theatre> is the current mission theatre. If the file exists, it decodes the JSON data and stores it in CMM.CITY; if not, it logs a warning message.
Related Functions:
Notes: