InitializePOI
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | InitializePOI | |
| Function Description: | Populates the global CMM.ACTIVEPOI list from a set of GRID identifiers. The function first expands the supplied GRIDS (string or table) into a list of POIs via CMM.MakePOIListFromGRIDS. If the first argument is the string "ALL" (case‑insensitive) the function activates every POI in the supplied grids. Each activated POI receives a unique marker ID, a visual circle on the F10 map, and is stored in CMM.ACTIVEPOI. The function does not return a value; it updates global state. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.InitializePOI( table or string GRIDS , number LargeFlat , number SmallFlat , number Large , number Small ) | |
| Return Value: | table or nil | |
| Parameters: | Name | Description |
| GRIDS | A list of GRID identifiers (e.g. { "DK47", "DK56" }) or a single GRID string. | |
| LargeFlat | Desired count of LargeFlat – number of large flat POIs (radius > 200 & isflat == true) | |
| SmallFlat | Desired count of SmallFlat – number of small flat POIs (radius == 200 & isflat == true) | |
| Large | Desired count of Large – number of large non‑flat POIs (radius > 200 & isflat == false) | |
| Small | Desired count of Small – number of small non‑flat POIs (radius == 200 & isflat == false). | |
| Example: | CMM.InitializePOI({"DK47","DK56","DK57"},3,0,0,17) | |
| Example Description: | Activates 3 large flat POIs and 17 small non‑flat POIs from the grids DK47, DK56, DK57. | |
| Related Functions: | ||
| Notes: | ||