Jump to content

DrawRoad

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawRoad
Function Description: Draws a road marker between two world positions, consisting of a dashed line with an optional directional arrow.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawRoad( table vec3Start , table vec3End , number or nil coal , number or nil lineType , table or nil colour , string or nil routeName )
Return Value: table
Parameters: Name Description
vec3StartStart location vec3 table
vec3EndEnd location vec3 table
coalCoalition number for the marker (-1 for all, 1 for Redfor, 2 for Bluefor, 3 for Neutral), default -1 (all).
lineTypeLineType Number (default 3) 0 No Line , 1 Solid , 2 Dashed , 3 Dotted , 4 Dot Dash , 5 Long Dash , 6 Two Dash
colourMarker Colour Table {r,g,b,a}, default {1,1,1,0.85} (white).
routeNameMarker Colour Table {r,g,b,a}, default {1,1,1,0.85} (white).
Example: CMM.DrawRoad(vec3start, vec3start)
Example Description: Deletes the pin with circle mark ID 42 and its associated marker from the map and clears any pending scheduled removal task for it.
Related Functions:
Notes: