Jump to content

SetPOIColour

From CMM Wiki
Return to CMM Command Reference
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
MarkerIDIdentifier of the marker that represents the POI on the F10 map.
OwnerNumerical 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: