Jump to content

LoadAirbasePersistenceFile

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: LoadAirbasePersistenceFile
Function Description:
File Location: cmm.AirBaseFunctions.lua
Syntax: CMM.LoadAirbasePersistenceFile( string AirbasePersistenceDirectory , table ABObject )
Return Value: nil
Parameters: Name Description
AirbasePersistenceDirectoryDirectory location of all Airbase Persistence Files for this mission.
ABObjectAn airbase object (or its name) whose persistence data will be loaded from the directory.
Example: CMM.LoadAirbasePersistenceFile(Airbase.getByName("Akrotiri"), "C:\\Mission\\AIRBASES\\")
Example Description: Loads the persistence file for Akrotiri from the specified directory, restoring its weapons, aircraft and coalition ownership.
Related Functions:
Notes: