Jump to content

LoadPOIState: Difference between revisions

From CMM Wiki
LoadPOIState – created via PowerShell script (2025-11-11T21:12:29Z)
Tag: Recreated
 
m LoadPOIState – created via PowerShell script (2026-06-24T22:27:03Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          LoadPOIState|fDescription=  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.|parentFile=    cmm.persistence.lua|syntax=        CMM.LoadPOIState(ACTIVEPOI <string|nil>, ACTIVEPOINAMES <string|nil>)|return=        nil|returnDesc=    Returns nothing after loading and initializing POI markers and their coalition colors, or issuing a warning if default paths are used.|example=        CMM.LoadPOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json")|exampleDesc=    Loads custom persistent POI and POI names data, creates markers with correct coalition colors, and logs success messages while skipping default path loading.|related=        |note=          |envType= CMM|par1=        string or nil ACTIVEPOI|optType1=    string or nil|optName1=    ACTIVEPOI|desc1=      Path to the ACTIVEPOI persistence file, or nil to use default location.|par2=        string or nil ACTIVEPOINAMES|optType2=    string or nil|optName2=    ACTIVEPOINAMES|desc2=      Path to the ACTIVEPOINAMES persistence file, or nil to use default location.}}
{{Template:FunctionInfo|fName=          LoadPOIState|fDescription=  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.|parentFile=    cmm.persistence.lua|syntax=        CMM.LoadPOIState(ACTIVEPOI <string|nil>, ACTIVEPOINAMES <string|nil>)|return=        nil|returnDesc=    Returns nothing after loading and initializing POI markers and their coalition colors, or issuing a warning if default paths are used.|example=        CMM.LoadPOIState("CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOI.json", "CMM.TEMP\PERSISTENCE\CUSTOM.ACTIVEPOINAMES.json")|exampleDesc=    Loads custom persistent POI and POI names data, creates markers with correct coalition colors, and logs success messages while skipping default path loading.|related=        |note=          |envType= CMM}}

Latest revision as of 12:27, 24 June 2026

Return to CMM Command Reference
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( )
Return Value: nil
Parameters: Name Description
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: