Jump to content

GetZone

From CMM Wiki
Revision as of 12:26, 24 June 2026 by Ozdeadmeat (talk | contribs) (getZone – created via PowerShell script (2026-06-24T22:26:38Z))
Return to CMM Command Reference
Environment: Mission Scripting
Function: getZone
Function Description: Returns a detailed zone table for the given zone name, augmenting the mission’s trigger‑zone data with a vec3 field (x, y = terrain height, z) and optional 3‑D vertex list (verticies3). If the zone cannot be found or the input is not a string, the function logs an error and returns nil.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.getZone( string ZoneName )
Return Value: table or nil
Parameters: Name Description
ZoneNameName of a zone defined in the mission editor.
Example: local weaponsRange = CMM.getZone("WeaponsRange02")
Example Description: The example shows how to obtain all relevant data for "WeaponsRange02", including the ground elevation at its centre (vec3.y) and the 3‑D coordinates of each vertex in verticies3.
Related Functions:
Notes: