markerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Update to prefer markerColor)
Line 1: Line 1:
[[Category:Scripting Commands|MARKERCOLOR]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.96|MARKERCOLOR]]
[[Category:Scripting Commands ArmA|MARKERCOLOR]]
[[Category:Command Group: Markers|MARKERCOLOR]]
{{Command|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.5|= Game version
|1.46|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns marker color for given marker. See [[setMarkerColor]]. <br><br>Note: This function is identical to [[getMarkerColor]]. |DESCRIPTION=
| Returns marker color for given marker. See also [[setMarkerColor]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= markerName: [[String]] |PARAMETER1=
|p1= markerName: [[String]] |PARAMETER1=
Line 21: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|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=
}}
}}


Line 36: Line 31:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Markers|{{uc:{{PAGENAME}}}}]]

Revision as of 16:50, 28 August 2019

Hover & click on the images for description

Description

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

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