getMarkerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
(45 intermediate revisions by 13 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#G|COMREF]]
{{RV|type=command


<h2 style="color:#000066"> '''getMarkerColour ''marker'''''</h2>
| ofp


|1.21


'''Operand types:'''
|gr1= Markers


'''marker:''' [[String]]
| Returns marker color for given marker.
{{Feature | Informative | This command is identical to [[markerColor]].}}


'''Type of returned value:'''
| [[getMarkerColor]] markerName


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


'''Compatibility:'''
| [[String]]


Added in version '''1.21'''
|x1= <code>"MarkerOne" [[setMarkerColor]] "ColorBlack";
_color = [[getMarkerColor]] "MarkerOne"; {{codecomment|// returns "ColorBlack"}}</code>


'''Description:'''
|seealso= [[setMarkerColor]], [[setMarkerColorLocal]]
}}


Gets the marker colour.
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
{{GameCategory|arma1|Scripting Commands}}
See [[setMarkerColor]]
{{GameCategory|arma2|Scripting Commands}}
 
{{GameCategory|arma3|Scripting Commands}}
 
{{GameCategory|tkoh|Scripting Commands}}
'''Example:'''
 
_mColour = '''getMarkerColor''' "MarkerOne"

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