SaveGroupsToFile
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SaveGroupsToFile | |
| Function Description: | Saves current group data for RED and BLUE sides to persistence files, with optional file paths and save flags. If no file path is provided, defaults are used. Returns true if both files were saved successfully. | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.SaveGroupsToFile( boolean or nil SaveRed , boolean or nil SaveBlue ) | |
| Return Value: | boolean | |
| Parameters: | Name | Description |
| SaveRed | Flag indicating whether to save RED group data (defaults to true if not provided). | |
| SaveBlue | Flag indicating whether to save BLUE group data (defaults to true if not provided). | |
| Example: | CMM.SaveGroupsToFile("custom_red.json", "custom_blue.json", true, false) | |
| Example Description: | Saves RED group data to custom_red.json and skips saving BLUE data, using custom file paths. | |
| Related Functions: | ||
| Notes: | ||