getMarkerSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(51 intermediate revisions by 5 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 the size of the given marker. A getter for [[setMarkerSize]] and an alias of [[markerSize]].|= Description
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


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


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


| [[Array]] - in format [a-axis, b-axis], where:
|game5= arma2oa
* a-axis: [[Number]] - 1/2 width of marker
|version5= 1.50
* b-axis: [[Number]] - 1/2 height of marker |= Return value
 
____________________________________________________________________________________________
|game6= tkoh
 
|version6= 1.00
|x1= <pre>"MarkerOne" setMarkerSize [100,200]
 
|game7= arma3
|version7= 0.50
 
|gr1= Markers


_size = getMarkerSize "MarkerOne"</pre>
|arg= global


returns [100,200] |= Example 1
|descr= Returns the size of the given marker. A getter for [[setMarkerSize]] and an alias of [[markerSize]].
____________________________________________________________________________________________


| [[setMarkerSize]], [[setMarkerBrush]], [[setMarkerColor]], [[setMarkerDir]], [[setMarkerPos]], [[setMarkerShape]], [[createMarker]], [[setMarkerText]], [[setMarkerType]], [[setMarkerAlpha]]
|s1= [[getMarkerSize]] markerName
|= See also


}}
|p1= markerName: [[String]]


<h3 style="display:none">Notes</h3>
|r1= [[Array]] in format [a-axis, b-axis], where:
<dl class="command_description">
* a-axis: [[Number]] - 1/2 width of marker
<!-- Note Section BEGIN -->
* b-axis: [[Number]] - 1/2 height of marker


<!-- Note Section END -->
|x1= <sqf>
</dl>
"MarkerOne" setMarkerSize [100,200];
_size = getMarkerSize "MarkerOne"; //returns [100,200]
</sqf>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[setMarkerSize]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[createMarker]] [[setMarkerText]] [[setMarkerType]] [[setMarkerAlpha]]
[[Category:Scripting Commands|GETMARKERSIZE]]
}}
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|GETMARKERSIZE]]
[[Category:Scripting Commands OFP 1.46|GETMARKERSIZE]]
[[Category:Scripting Commands ArmA|GETMARKERSIZE]]
[[Category:Command Group: Markers|GETMARKERSIZE]]
[[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: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