ClearPOIState
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | ClearPOIState | |
| Function Description: | Deletes persistent POI and POI names data files from specified locations, clearing associated variables. If default paths are provided, a warning is issued and no files are deleted. | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.ClearPOIState( 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.ClearPOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json") | |
| Example Description: | Deletes custom persistent POI and POI names files, removes stored data, and logs removal actions while avoiding deletion of default files. | |
| Related Functions: | ||
| Notes: | ||