LoadPOIState
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | LoadPOIState | |
| Function Description: | Loads persistent POI and POI names data from specified JSON files, initializing markers and setting their coalition colors. If default paths are detected, a warning is issued and no data is loaded. | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.LoadPOIState( 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.LoadPOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json") | |
| Example Description: | Loads custom persistent POI and POI names data, creates markers with correct coalition colors, and logs success messages while skipping default path loading. | |
| Related Functions: | ||
| Notes: | ||