Jump to content

MakePOIListFromGRIDS

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: MakePOIListFromGRIDS
Function Description: Builds a list of Point‑of‑Interest entries that belong to the supplied grid(s). The function accepts either a single GRID string or an array of GRID strings, filters CMM.MISSION.POI for matching entries, and returns the resulting table (or nil if no valid argument was provided).
File Location: cmm.DCSFunctions.lua
Syntax: CMM.MakePOIListFromGRIDS( table or string GRIDS )
Return Value: table or nil
Parameters: Name Description
GRIDSA list of GRID identifiers (e.g. { "DK36", "DK47" }) or a single GRID string.
Example: local poiList = CMM.MakePOIListFromGRIDS({"DK36","DK47","DK37"})
Example Description: Creates a list of all POIs that lie on grids DK36, DK47 or DK37 and stores it in poiList.
Related Functions:
Notes: