DrawCity
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | DrawCity | |
| Function Description: | Draws a city on the map using a predefined set of points from CMM.CITY. It allows customization of coalition ownership and marker colors. Returns the marker ID of the created city marker. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.DrawCity( string name , number coal , table colourfill , table colourline ) | |
| Return Value: | number or nil | |
| Parameters: | Name | Description |
| name | Name of the city to draw. Must correspond to a key in the CMM.CITY table. | |
| coal | Coalition number for the marker (0 = neutral, 1 = red, 2 = blue). If invalid, defaults to -1 (all). | |
| colourfill | RGBA color table for the marker fill | |
| colourline | RGBA color table for the marker outline | |
| Example: | CMM.DrawCity("Krymsk", 2, {0,0,0.7,0.5}, {0,0,0,1}) | |
| Example Description: | Draws a city marker for "Krymsk" with blue fill and black outline, owned by the blue coalition. | |
| Related Functions: | ||
| Notes: | ||