Jump to content

SavePOIState

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (SavePOIState – created via PowerShell script (2025-11-11T21:12:29Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
ACTIVEPOIPath to the ACTIVEPOI persistence file, or nil to use default location.
ACTIVEPOINAMESPath 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: