getMarkerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.21


|1.21
|game2= ofpe
|version2= 1.00


|gr1 = Markers
|game3= arma1
|version3= 1.00


|game4= arma2
|version4= 1.00


|game5= arma2oa
|version5= 1.50


| Returns marker color for given marker.
|game6= tkoh
{{Informative | This command is identical to [[markerColor]].}}
|version6= 1.00


| [[getMarkerColor]] markerName
|game7= arma3
|version7= 0.50
 
|gr1= Markers
 
|descr= Returns marker color for given marker.
{{Feature|informative|This command is identical to [[markerColor]].}}
 
|s1= [[getMarkerColor]] markerName


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


| [[String]]
|r1= [[String]]


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


| [[setMarkerColor]], [[setMarkerColorLocal]]
|seealso= [[setMarkerColor]] [[setMarkerColorLocal]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 19:43, 3 September 2024

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:
setMarkerColor setMarkerColorLocal

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