markerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.46|Game version=
|1.46


|gr1 = Markers |GROUP1=
|gr1 = Markers






| Returns marker color for given marker. See also [[setMarkerColor]]. |DESCRIPTION=
| Returns marker color for given marker. See also [[setMarkerColor]].


| [[markerColor]] markerName |SYNTAX=
| [[markerColor]] markerName


|p1= markerName: [[String]] |PARAMETER1=
|p1= markerName: [[String]]


| [[String]] |RETURNVALUE=
| [[String]]
   
   
|x1= <code>[[if]] ([[markerColor]] "Marker1" == "ColorRed") [[then]] { [[hint]] "Marker1 is red!" };</code> |EXAMPLE1=
|x1= <code>[[if]] ([[markerColor]] "Marker1" == "ColorRed") [[then]] { [[hint]] "Marker1 is red!" };</code>


| [[setMarkerColor]], [[setMarkerColorLocal]] |SEEALSO=
| [[setMarkerColor]], [[setMarkerColorLocal]]
}}
}}



Revision as of 01:06, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns marker color for given marker. See also setMarkerColor.
Groups:
Markers

Syntax

Syntax:
markerColor markerName
Parameters:
markerName: String
Return Value:
String

Examples

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

Additional Information

See also:
setMarkerColorsetMarkerColorLocal

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Bottom Section