markerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 9: Line 8:




____________________________________________________________________________________________


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


| [[markerColor]] markerName |SYNTAX=
| [[markerColor]] markerName |SYNTAX=
Line 19: Line 16:


| [[String]] |RETURNVALUE=
| [[String]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|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> |EXAMPLE1=
____________________________________________________________________________________________


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

Revision as of 02:56, 17 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

Notes

Bottom Section