Jump to content

DrawZoneArrow

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawZoneArrow – created via PowerShell script (2025-11-11T21:12:17Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
Zone1Name of the first zone (Mission Editor name). The arrow tip is drawn at this zone’s centre offset by its radius.
Zone2Name of the second zone. The arrow base is drawn at this zone’s centre offset by its radius.
ArrowParamsTable with three numbers {ArrowHeadLength, ArrowHeadWidth, ShaftThickness}.
colourRGBA outline colour ({r,g,b,a}).
colourFillRGBA 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: