Difference between revisions of "getMarkerColor"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:Scripting Commands|GETMARKERCOLOR]]
+
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|GETMARKERCOLOR]]
+
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GETMARKERCOLOR]]
 
[[Category:Scripting Commands ArmA|GETMARKERCOLOR]]
 
  
 +
| ofp |= Game name
  
<h2 style="color:#000066"> '''getMarkerColour ''marker'''''</h2>
+
|1.21|= Game version
  
 +
|arg= local |= Arguments in MP
 +
____________________________________________________________________________________________
  
'''Operand types:'''
+
| Returns the color of a given map marker. |= Description
 +
____________________________________________________________________________________________
  
'''marker:''' [[String]]
+
| '''getMarkerColor''' marker |= Syntax
  
'''Type of returned value:'''
+
|p1= marker: [[String]] - marker name |= Parameter 1
  
[[String]]
+
| [[String]]
 +
The returned color is one of "Default", "ColorBlack", "ColorRed", "ColorRedAlpha", "ColorGreen", "ColorGreenAlpha", "ColorBlue", "ColorYellow" and "ColorWhite" |= Return value
 +
____________________________________________________________________________________________
 +
 
 +
|x1= <pre>"MarkerOne" setMarkerColor "ColorBlack"
  
'''Compatibility:'''
+
_color = getMarkerColor "MarkerOne"</pre>
  
Added in version '''1.21'''
+
returns "ColorBlack" |= Example 1
 +
____________________________________________________________________________________________
  
'''Description:'''
+
| [[setMarkerColor]] |= See also
  
Gets the marker colour.
+
}}
  
See [[setMarkerColor]]
+
<h3 style="display:none">Notes</h3>
 +
<dl class="command_description">
 +
<!-- Note Section BEGIN -->
  
 +
<!-- Note Section END -->
 +
</dl>
  
'''Example:'''
+
<h3 style="display:none">Bottom Section</h3>
 
+
[[Category:Scripting Commands|GETMARKERCOLOR]]
_mColour = '''getMarkerColor''' "MarkerOne"
+
[[Category:Scripting Commands OFP 1.96|GETMARKERCOLOR]]
 +
[[Category:Scripting Commands OFP 1.46|GETMARKERCOLOR]]
 +
[[Category:Scripting Commands ArmA|GETMARKERCOLOR]]

Revision as of 01:21, 2 August 2006

Introduced with Operation Flashpoint version 1.211.21Arguments of this scripting command have to be local to the client the command is executed on
Hover & click on the images for descriptions

Description

Description:
Returns the color of a given map marker.

Syntax

Syntax:
getMarkerColor marker
Parameters:
marker: String - marker name
Return Value:
String - The returned color is one of "Default", "ColorBlack", "ColorRed", "ColorRedAlpha", "ColorGreen", "ColorGreenAlpha", "ColorBlue", "ColorYellow" and "ColorWhite"

Examples

Example 1:
"MarkerOne" setMarkerColor "ColorBlack"

_color = getMarkerColor "MarkerOne"
returns "ColorBlack"

Additional Information

See also:
setMarkerColor

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section