DrawZoneArrow
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | DrawZoneArrow | |
| Function Description: | Draws an arrow marker between two mission‑editor zones, using the zone radii to offset the tip and base. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.DrawZoneArrow( string Zone1 , string Zone2 , table ArrowParams , table colour , table colourFill ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| Zone1 | Name of the first zone (Mission Editor name). The arrow tip is drawn at this zone’s centre offset by its radius. | |
| Zone2 | Name of the second zone. The arrow base is drawn at this zone’s centre offset by its radius. | |
| ArrowParams | Table with three numbers {ArrowHeadLength, ArrowHeadWidth, ShaftThickness}. | |
| colour | RGBA outline colour ({r,g,b,a}). | |
| colourFill | RGBA fill colour ({r,g,b,a}). | |
| Example: | CMM.DrawZoneArrow("Alpha", "Bravo", {4000,2000,500}, {1,0,0,0.9}, {1,0,0,0.4}) | |
| Example Description: | Draws a red arrow from zone “Alpha” to zone “Bravo”, offsetting each end by the respective zone radius. | |
| Related Functions: | ||
| Notes: | ||