Jump to content

ScanHalfAlpha

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: ScanHalfAlpha
Function Description: Applies partial transparency to visual markers by reducing the alpha value of border and fill colors, then updates the marker's appearance using trigger actions.
File Location: cmm.MapCommandFunctions.lua
Syntax: CMM.ScanHalfAlpha( table argTable )
Return Value: nil
Parameters: Name Description
argTable{markerID <number or table>, BorderColour <TBL>, FillColour <TBL>} – markerID is the marker ID or a table of IDs; BorderColour and FillColour are RGBA tables with alpha values to be reduced.
Example: CMM.ScanHalfAlpha({markerID = 123, BorderColour = <colourTable>, FillColour = <colourTable>})
Example Description: Reduces alpha of a red marker by 20% and applies it to the border and fill, making the marker semi-transparent.
Related Functions:
Notes: Used to signify the aging of scan returns from the Map Command !scan