Jump to content

GetAllPOI

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetAllPOI – created via PowerShell script (2025-11-11T21:12:05Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetAllPOI
Function Description: Scans the mission for predefined POI unit types, evaluates their flatness, logs any that exceed a threshold and stores all POIs in CMM.MISSION.POI. The function also writes a JSON file with the collected data.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.GetAllPOI( number flatnessDelta )
Return Value: nil
Parameters: Name Description
flatnessDeltaNumber value in meters of maximum height difference for an area [DEFAULT: 4]
Example: CMM.GetAllPOI(5)
Example Description: Gathers all POIs with a flatness tolerance of 5 m, logs any that exceed the limit, writes -POI.json and populates CMM.MISSION.POI.
Related Functions:
Notes: