DrawRoad
Appearance
| 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 |
| vec3Start | Start location vec3 table | |
| vec3End | End location vec3 table | |
| coal | Coalition number for the marker (-1 for all, 1 for Redfor, 2 for Bluefor, 3 for Neutral), default -1 (all). | |
| lineType | LineType Number (default 3) 0 No Line , 1 Solid , 2 Dashed , 3 Dotted , 4 Dot Dash , 5 Long Dash , 6 Two Dash | |
| colour | Marker Colour Table {r,g,b,a}, default {1,1,1,0.85} (white). | |
| routeName | Marker 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: | ||