getMarkerColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|1.21|= Game version
|version1= 1.21
|arg= global |= Arguments in MP
____________________________________________________________________________________________


| Returns marker color for given marker. See [[setMarkerColor]]. <br><br>Note: This function is identical to [[markerColor]]. |= Description
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| '''getMarkerColor''' markerName |= Syntax
|game3= arma1
|version3= 1.00


|p1= markerName: [[String]] - marker name |= Parameter 1
|game4= arma2
|version4= 1.00


| [[String]]|= Return value
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50
 
|x1= <code>"MarkerOne" [[setMarkerColor]] "ColorBlack";
_color = [[getMarkerColor]] "MarkerOne"; //returns "ColorBlack"</code> |= Example 1
____________________________________________________________________________________________


| [[setMarkerColor]], [[setMarkerColorLocal]] |= See also
|game6= tkoh
|version6= 1.00


}}
|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


<h3 style="display:none">Notes</h3>
|r1= [[String]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>"MarkerOne" setMarkerColor "ColorBlack";
</dl>
_color = getMarkerColor "MarkerOne"; // returns "ColorBlack"</sqf>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[setMarkerColor]] [[setMarkerColorLocal]]
[[Category:Scripting Commands|GETMARKERCOLOR]]
}}
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|GETMARKERCOLOR]]
[[Category:Scripting Commands OFP 1.46|GETMARKERCOLOR]]
[[Category:Scripting Commands ArmA|GETMARKERCOLOR]]
[[Category:Command Group: Markers|GETMARKERCOLOR]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:11, 15 March 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