Jump to content

DrawCargoPoint

From CMM Wiki
Return to CMM Command Reference
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
vec3World position where the cargo point should be drawn.
coalCoalition for which the marker is visible (-1 = all, 0 = neutral, 1 = Redfor, 2 = Blufor). Defaults to -1.
OwnerColour 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: