DrawZone: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) DrawZone – created via PowerShell script (2025-11-11T21:12:15Z) Tag: Recreated |
Ozdeadmeat (talk | contribs) m DrawZone – created via PowerShell script (2026-06-24T22:26:49Z) |
||
| Line 1: | Line 1: | ||
{{Template:FunctionInfo|fName= DrawZone|fDescription= Creates a zone marker on the map using the parameters supplied in *argTbl*.|parentFile= cmm.drawFunctions.lua|syntax= CMM.DrawZone(<argTbl table>)|return= table|returnDesc= Table of Marker ID's created for the zone.|example= CMM.DrawZone{zoneName="Alpha", fillColour={r=1,g=0,b=0,a=0.3}, lineType=2}|exampleDesc= Draws a red‑filled zone named “Alpha” with a dashed outline and returns the IDs of the created markers.|related= |note= |envType= CMM|par1= table argTbl|reqType1= table|reqName1= argTbl|desc1= Table items are at the start of the function. Required field: zoneName. Optional fields: fillColour, lineColour, labelColour, useZoneColour, lineType, labelSize, coalition, and label.}} | {{Template:FunctionInfo|fName= DrawZone|fDescription= Creates a zone marker on the map using the parameters supplied in *argTbl*.|parentFile= cmm.drawFunctions.lua|syntax= CMM.DrawZone(<argTbl table>)|return= table or nil|returnDesc= Table of Marker ID's created for the zone.|example= CMM.DrawZone{zoneName="Alpha", fillColour={r=1,g=0,b=0,a=0.3}, lineType=2}|exampleDesc= Draws a red‑filled zone named “Alpha” with a dashed outline and returns the IDs of the created markers.|related= |note= |envType= CMM|par1= table argTbl|reqType1= table|reqName1= argTbl|desc1= Table items are at the start of the function. Required field: zoneName. Optional fields: fillColour, lineColour, labelColour, useZoneColour, lineType, labelSize, coalition, and label.}} | ||
Latest revision as of 12:26, 24 June 2026
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | DrawZone | |
| Function Description: | Creates a zone marker on the map using the parameters supplied in *argTbl*. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.DrawZone( table argTbl ) | |
| Return Value: | table or nil | |
| Parameters: | Name | Description |
| argTbl | Table items are at the start of the function. Required field: zoneName. Optional fields: fillColour, lineColour, labelColour, useZoneColour, lineType, labelSize, coalition, and label. | |
| Example: | CMM.DrawZone{zoneName="Alpha", fillColour={r=1,g=0,b=0,a=0.3}, lineType=2} | |
| Example Description: | Draws a red‑filled zone named “Alpha” with a dashed outline and returns the IDs of the created markers. | |
| Related Functions: | ||
| Notes: | ||