DrawCargoPoint
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | DrawCargoPoint | |
| Function Description: | Draws a cargo‑point icon on the map. The marker consists of an outer rounded quadrilateral (the base) and three stacked cargo boxes (left, right, top). | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.DrawCargoPoint( table vec3 , number coal , number Owner ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| vec3 | World position where the cargo point should be drawn. | |
| coal | Coalition for which the marker is visible (-1 = all, 0 = neutral, 1 = Redfor, 2 = Blufor). Defaults to -1. | |
| Owner | Colour indicator for the base of the marker (-1 or any value other than 0‑2 → light grey; 0 = neutral; 1 = red; 2 = blue). Defaults to -1. | |
| Example: | CMM.DrawCargoPoint({x=250, y=0, z=-150}, 1, 1) | |
| Example Description: | Draws a red‑for cargo point at the specified coordinates that is visible only to Redfor units. | |
| Related Functions: | ||
| Notes: | ||