SetPOIColour
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SetPOIColour | |
| Function Description: | Changes the visual colour of a POI marker to reflect its current owner. The function maps the Owner value to a predefined half‑colour (Red, Blue or Purple) and applies it to the marker identified by MarkerID. The background remains black for all owners. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.SetPOIColour( number MarkerID , number Owner ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| MarkerID | Identifier of the marker that represents the POI on the F10 map. | |
| Owner | Numerical code indicating ownership: 1 = RED, 2 = BLUE, 3 = IN CONFLICT | |
| Example: | CMM.SetPOIColour(42, 1) | |
| Example Description: | Sets marker #42 to a half‑red colour with a black background. | |
| Related Functions: | ||
| Notes: | ||