SavePersistence
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SavePersistence | |
| Function Description: | Saves All Persistence Files to default locations | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.SavePersistence( number or nil time2save , table or nil savefunctions ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| time2save | Optional time in seconds to save, defaults to 30 seconds if not provided or invalid. | |
| savefunctions | Optional table of specific save functions to call instead of the default set; if nil, all default persistence save functions will be called. | |
| Example: | CMM.SavePersistence() | |
| Example Description: | Saves all persistence files to their default locations, including groups, POI state, banked tables, support tables, FOB persistence, and airbase persistence, ensuring all campaign data is stored for future missions. | |
| Related Functions: | ||
| Notes: | ||