GetZone
Appearance
| 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 |
| ZoneName | Name 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: | ||