getMarkerSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(67 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|GETMARKERSIZE]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97|GETMARKERSIZE]]
[[Category:Scripting Commands OFP 1.46|GETMARKERSIZE]]
[[Category:Scripting Commands ArmA|GETMARKERSIZE]]


|game1= ofp
|version1= 1.21


<h2 style="color:#000066"> '''getMarkerSize ''marker'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''marker:''' [[String]]
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Array]]
|game7= arma3
|version7= 0.50


'''Compatibility:'''
|gr1= Markers


Added in version '''1.21'''
|arg= global


'''Description:'''
|descr= Returns the size of the given marker. A getter for [[setMarkerSize]] and an alias of [[markerSize]].


Get marker size.
|s1= [[getMarkerSize]] markerName


See [[setMarkerSize]]
|p1= markerName: [[String]]


|r1= [[Array]] in format [a-axis, b-axis], where:
* a-axis: [[Number]] - 1/2 width of marker
* b-axis: [[Number]] - 1/2 height of marker


'''Examples:'''
|x1= <sqf>
"MarkerOne" setMarkerSize [100,200];
_size = getMarkerSize "MarkerOne"; //returns [100,200]
</sqf>


_mSize = '''getMarkerSize''' "MarkerOne"
|seealso= [[setMarkerSize]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[createMarker]] [[setMarkerText]] [[setMarkerType]] [[setMarkerAlpha]]
}}

Latest revision as of 19:43, 3 September 2024

Hover & click on the images for description

Description

Description:
Returns the size of the given marker. A getter for setMarkerSize and an alias of markerSize.
Groups:
Markers

Syntax

Syntax:
getMarkerSize markerName
Parameters:
markerName: String
Return Value:
Array in format [a-axis, b-axis], where:
  • a-axis: Number - 1/2 width of marker
  • b-axis: Number - 1/2 height of marker

Examples

Example 1:
"MarkerOne" setMarkerSize [100,200]; _size = getMarkerSize "MarkerOne"; //returns [100,200]

Additional Information

See also:
setMarkerSize setMarkerBrush setMarkerColor setMarkerDir setMarkerPos setMarkerShape createMarker setMarkerText setMarkerType setMarkerAlpha

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