setMarkerColor
Client-side
Server-side
Shared
Pair: getMarkerColor
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function sets the color of the specified marker by modifying the values for red, green, blue and alpha.
Syntax
setMarkerColor ( )Code Examples
server
local newMarker = createMarker ( 0, 0, 2, "cylinder", 1, 255, 0, 0, 255 ) -- Create a red markersetMarkerColor ( newMarker, 0, 255, 0, 255 ) -- Turn the red marker into a green one