Arma 3 Scripting

Command in Markers

markerColor

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns colour of the given marker. See also setMarkerColor/Local.

Syntax

markerColor markerName

Parameters:

Returns: String

Examples

Example 1

if (markerColor "Marker1" == "ColorRed") then { hint "Marker1 is red!" };

Example 2

"mySuperMarker" setMarkerColor "#(0,1000,0,0.50000)";    // full green, 50% alpha
private _colour = markerColor "mySuperMarker";            // return properly-formatted custom value, here #(0,1,0,0.5)
if (_colour select [0, 1] == "#") then { hint "this marker has a custom colour!" };

See also

setMarkerColor · setMarkerColorLocal