Jump to content

DrawPin

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (DrawPin – created via PowerShell script (2025-11-11T21:12:18Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DrawPin
Function Description: Draws a coloured pin marker at the specified world coordinates. The pin consists of a semi‑circular base and an attached polygon that resembles a flag or arrow, together with a surrounding circle.
File Location: cmm.drawFunctions.lua
Syntax: CMM.DrawPin( table vec3 , string colour )
Return Value: nil
Parameters: Name Description
vec3World position where the pin should be placed.
colourColour of the pin’s fill (case‑insensitive). Supported values are "white", "red", "blue", "green", "orange", "yellow" and "black". If omitted or invalid, white is used.
Example: CMM.DrawPin({x = 0, y = 0, z = 0}, "red")
Example Description: Draws a red pin at the world origin that will automatically disappear after ten minutes (default TTL).
Related Functions:
Notes: