Difference between revisions of "getMarkerColor"

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
(format)
Line 10: Line 10:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[String]] <nowiki>=</nowiki> '''getMarkerColor''' markerName |= Syntax
+
| '''getMarkerColor''' markerName |= Syntax
  
 
|p1= markerName: [[String]] - marker name |= Parameter 1
 
|p1= markerName: [[String]] - marker name |= Parameter 1
  
| [[String]]
+
| [[String]]|= Return value
The returned color is one of "Default", "ColorBlack", "ColorRed", "ColorRedAlpha", "ColorGreen", "ColorGreenAlpha", "ColorBlue", "ColorYellow" and "ColorWhite". If the marker does not exists a empty string will be returned. |= Return value
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <pre>"MarkerOne" setMarkerColor "ColorBlack"
+
|x1= <code>"MarkerOne" [[setMarkerColor]] "ColorBlack";
 
+
_color = [[getMarkerColor]] "MarkerOne"; //returns "ColorBlack"</code> |= Example 1
_color = getMarkerColor "MarkerOne"</pre>
 
 
 
returns "ColorBlack" |= Example 1
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 19:19, 6 August 2016

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

Description

Description:

Syntax

Syntax:
Returns marker color for given marker. See setMarkerColor.

Note: This function is identical to markerColor.
Parameters:
markerName: String - marker name
Return Value:
getMarkerColor markerName

Examples

Example 1:
"MarkerOne" setMarkerColor "ColorBlack"; _color = getMarkerColor "MarkerOne"; //returns "ColorBlack"

Additional Information

See also:
String

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