getMarkerColor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.21|= Game version | |||
|arg= local |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Returns the color of a given map marker. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''getMarkerColor''' marker |= Syntax | ||
|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" | |||
_color = getMarkerColor "MarkerOne"</pre> | |||
returns "ColorBlack" |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[setMarkerColor]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|GETMARKERCOLOR]] | |||
[[Category:Scripting Commands OFP 1.96|GETMARKERCOLOR]] | |||
[[Category:Scripting Commands OFP 1.46|GETMARKERCOLOR]] | |||
[[Category:Scripting Commands ArmA|GETMARKERCOLOR]] |
Revision as of 00:21, 2 August 2006
Description
- Description:
- Returns the color of a given map marker.
- Groups:
- Uncategorised
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
-
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