{"name":"markerColor","title":"markerColor","type":"command","url":"https://community.bistudio.com/wiki/markerColor","revid":370049,"updated":"2024-10-29T12:21:16Z","groups":["Markers"],"status":"ok","games":{"ofp":"1.46","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.46","arma3_since":"0.50","description":"Returns colour of the given marker. See also setMarkerColor/Local.","syntaxes":[{"syntax":"markerColor markerName","params":[{"name":"markerName","type":"String","type_expr":"String"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"markerName"}}],"examples":[{"code":["if (markerColor \"Marker1\" == \"ColorRed\") then { hint \"Marker1 is red!\" };"]},{"text":"```sqf\n\"mySuperMarker\" setMarkerColor \"#(0,1000,0,0.50000)\";    // full green, 50% alpha\nprivate _colour = markerColor \"mySuperMarker\";            // return properly-formatted custom value, here #(0,1,0,0.5)\nif (_colour select [0, 1] == \"#\") then { hint \"this marker has a custom colour!\" };\n```","code":["\"mySuperMarker\" setMarkerColor \"#(0,1000,0,0.50000)\";\t// full green, 50% alpha\nprivate _colour = markerColor \"mySuperMarker\";\t\t\t// return properly-formatted custom value, here #(0,1,0,0.5)\nif (_colour select [0, 1] == \"#\") then { hint \"this marker has a custom colour!\" };"]}],"see_also":["setMarkerColor","setMarkerColorLocal"]}