getMarkerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
(36 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
| ofp


|1.21|= Game version
|1.21


|arg= local |= Arguments in MP
|gr1= Markers
____________________________________________________________________________________________


| Returns the color of a given map marker. |= Description
| Returns marker color for given marker.
____________________________________________________________________________________________
{{Feature | Informative | This command is identical to [[markerColor]].}}


| [[String]] <nowiki>=</nowiki> '''getMarkerColor''' "marker" |= Syntax
| [[getMarkerColor]] markerName


|p1= marker: [[String]] - marker name |= Parameter 1
|p1= markerName: [[String]] - marker name


| [[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>
|x1= <code>"MarkerOne" [[setMarkerColor]] "ColorBlack";
 
_color = [[getMarkerColor]] "MarkerOne"; {{codecomment|// returns "ColorBlack"}}</code>
returns "ColorBlack" |= Example 1
____________________________________________________________________________________________
 
| [[setMarkerColor]] |= See also


|seealso= [[setMarkerColor]], [[setMarkerColorLocal]]
}}
}}


<h3 style="display:none">Notes</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<dl class="command_description">
{{GameCategory|arma1|Scripting Commands}}
<!-- Note Section BEGIN -->
{{GameCategory|arma2|Scripting Commands}}
 
{{GameCategory|arma3|Scripting Commands}}
<!-- Note Section END -->
{{GameCategory|tkoh|Scripting Commands}}
</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]]
[[Category:Command Group: Markers|GETMARKERCOLOR]]

Revision as of 13:46, 11 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Markers

Syntax

Syntax:
Syntax needed
Parameters:
markerName: String - marker name
Return Value:
Return value needed

Examples

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

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