markerSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(55 intermediate revisions by 14 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#M|COMREF]]
{{RV|type=command


<h2 style="color:#000066">'''markerSize ''markerName'''''</h2>
|game1= ofp
|version1=


 
|game2= ofpe
'''Operand types:'''
|version2= 1.00


'''markerName:''' [[String]]
|game3= arma1
|version3= 1.00


'''Type of returned value:'''
|game4= arma2
|version4= 1.00


[[Array]]
|game5= arma2oa
|version5= 1.50


'''Compatibility:'''
|game6= tkoh
|version6= 1.00


Added in version '''1.50'''
|game7= arma3
|version7= 0.50


'''Description:'''
|gr1= Markers


Get marker size.
|arg= global


'''Note:''' This function is identical to [[getMarkerSize]].
|descr= Returns marker size. This command is identical to [[getMarkerSize]].


|s1= [[markerSize]] markerName


'''Example:'''
|p1= markerName: [[String]]


_mSize = '''markerSize''' "MarkerOne"
|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
 
|x1= <sqf>_mSize = markerSize "Marker1";</sqf>
 
|seealso= [[setMarkerSize]] [[setMarkerSizeLocal]]
}}

Latest revision as of 10:23, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns marker size. This command is identical to getMarkerSize.
Groups:
Markers

Syntax

Syntax:
markerSize 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:
_mSize = markerSize "Marker1";

Additional Information

See also:
setMarkerSize setMarkerSizeLocal

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