GetMarkerColor
Jump to navigation
Jump to search
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 myMarker )
This function also has three variants that allow you to retrieve data from just one of the three axes.
int getMarkerColor|getMarkerColorRed ( marker myMarker )
int getMarkerColor|getMarkerColorGreen ( marker myMarker )
int getMarkerColor|getMarkerColorBlue ( marker myMarker )
Required Arguments
- marker: The marker that you wish to retrieve the color of.
Returns
Returns three ints corresponding to the amount of red, green and blue (respectively) in the marker's color.
Example
newMarker = createMarker ( 1, 1000, 1000, 1000, 1,0,0 ) r,g,b = getMarkerColor ( newmarker ) if (r) then OutputChatBox ( ("Current marker color: ",r,",",g,",",b,"."), player ) end