SavePOIState: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) SavePOIState – created via PowerShell script (2025-11-11T21:12:29Z) Tag: Recreated |
Ozdeadmeat (talk | contribs) m SavePOIState – created via PowerShell script (2026-06-24T22:27:03Z) |
||
| Line 1: | Line 1: | ||
{{Template:FunctionInfo|fName= SavePOIState|fDescription= 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.|parentFile= cmm.persistence.lua|syntax= CMM.SavePOIState(ACTIVEPOI <string|nil>, ACTIVEPOINAMES <string|nil>)|return= nil|returnDesc= Returns nothing after saving both persistence files or issuing a warning if default paths are used.|example= CMM.SavePOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json")|exampleDesc= Saves CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to custom persistence files, logging success messages and avoiding default path warnings.|related= |note= |envType= CMM | {{Template:FunctionInfo|fName= SavePOIState|fDescription= 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.|parentFile= cmm.persistence.lua|syntax= CMM.SavePOIState(ACTIVEPOI <string|nil>, ACTIVEPOINAMES <string|nil>)|return= nil|returnDesc= Returns nothing after saving both persistence files or issuing a warning if default paths are used.|example= CMM.SavePOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json")|exampleDesc= Saves CMM.ACTIVEPOI and CMM.ACTIVEPOINAMES to custom persistence files, logging success messages and avoiding default path warnings.|related= |note= |envType= CMM}} | ||
Latest revision as of 12:27, 24 June 2026
| 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( ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| 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: | ||