getMarkerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.21|Game version=
|1.21


|gr1 = Markers |GROUP1=
|gr1 = Markers






| Returns marker color for given marker.
| Returns marker color for given marker.
{{Informative | This command is identical to [[markerColor]].}} |DESCRIPTION=
{{Informative | This command is identical to [[markerColor]].}}


| [[getMarkerColor]] markerName |SYNTAX=
| [[getMarkerColor]] markerName


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


| [[String]]|RETURNVALUE=
| [[String]]


|x1= <code>"MarkerOne" [[setMarkerColor]] "ColorBlack";
|x1= <code>"MarkerOne" [[setMarkerColor]] "ColorBlack";
_color = [[getMarkerColor]] "MarkerOne"; {{codecomment|// returns "ColorBlack"}}</code> |EXAMPLE1=
_color = [[getMarkerColor]] "MarkerOne"; {{codecomment|// returns "ColorBlack"}}</code>


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



Revision as of 01:41, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns marker color for given marker.
This command is identical to markerColor.
Groups:
Markers

Syntax

Syntax:
getMarkerColor markerName
Parameters:
markerName: String - marker name
Return Value:
String

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

Bottom Section