SavePOIState
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SavePOIState | |
| Function Description: | Saves the current state of CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to persistent JSON files, using provided file paths or default locations. If default paths are detected, a warning is issued and no saving occurs. | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.SavePOIState( string or nil ACTIVEPOI , string or nil ACTIVEPOINAMES ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| ACTIVEPOI | Path to the ACTIVEPOI persistence file, or nil to use default location. | |
| ACTIVEPOINAMES | Path to the ACTIVEPOINAMES persistence file, or nil to use default location. | |
| Example: | CMM.SavePOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json") | |
| Example Description: | Saves CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to custom persistence files, logging success messages and avoiding default path warnings. | |
| Related Functions: | ||
| Notes: | ||