GetMarkerColor
Jump to navigation
Jump to search
Description
This function returns three ints corresponding to the amount of red, green and blue (respectively) in the marker's color. It can be useful for coloring objectives text to the same color as the marker.
Syntax
int int int getMarkerColor ( marker marker )
This function also has three variants that allow you to retrieve data from just one of the three axes.
int getMarkerColorRed ( marker marker )
int getMarkerColorGreen ( marker marker )
int getMarkerColorBlue ( marker marker )
Required Arguments
- marker: The marker that you wish to retrieve the color of.
Example
newmarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 ) r,g,b = getMarkerColor ( newmarker ) if (r) then serverChat ( "Current marker color: ",r,",",g,",",b,"." ) end