DrawPin
Appearance
| 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 |
| vec3 | World position where the pin should be placed. | |
| colour | Colour 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: | ||