Jump to content

ChangeMarkerOpacity

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: ChangeMarkerOpacity
Function Description: Adjusts the opacity of a marker by modifying its colour alpha component using provided colour and fill colour tables, with optional alpha multiplier, and logs the operation.
File Location: cmm.markerFunctions.lua
Syntax: CMM.ChangeMarkerOpacity( table argTbl )
Return Value:
Parameters: Name Description
argTbl{mkrID <number>, colour <TBL>, colourF <TBL>, alpha <number>} – table containing marker ID, colour table for marker outline, colour table for fill, and alpha multiplier.
Example: CMM.ChangeMarkerOpacity({12345, {r=1,g=0,b=0,a=1}, {r=0,g=1,b=0,a=1}, 0.7})
Example Description: Changes the opacity of marker #12345 to 70% using a red outline and green fill colour, logging the operation.
Related Functions:
Notes: