getMarkerSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|1.21
|version1= 1.21


|gr1 = Markers
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50
 
|gr1= Markers


|arg= global
|arg= global


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


| '''getMarkerSize''' markerName
|s1= [[getMarkerSize]] markerName


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


| [[Array]] - in format [a-axis, b-axis], where:
|r1= [[Array]] in format [a-axis, b-axis], where:
* a-axis: [[Number]] - 1/2 width of marker
* a-axis: [[Number]] - 1/2 width of marker
* b-axis: [[Number]] - 1/2 height of marker
* b-axis: [[Number]] - 1/2 height of marker
 
|x1= <code>"MarkerOne" [[setMarkerSize]] [100,200];
_size = [[getMarkerSize]] "MarkerOne"; //returns [100,200]</code>


| [[setMarkerSize]], [[setMarkerBrush]], [[setMarkerColor]], [[setMarkerDir]], [[setMarkerPos]], [[setMarkerShape]], [[createMarker]], [[setMarkerText]], [[setMarkerType]], [[setMarkerAlpha]]
|x1= <sqf>
"MarkerOne" setMarkerSize [100,200];
_size = getMarkerSize "MarkerOne"; //returns [100,200]
</sqf>
 
|seealso= [[setMarkerSize]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[createMarker]] [[setMarkerText]] [[setMarkerType]] [[setMarkerAlpha]]
}}
}}
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|GETMARKERSIZE]]
[[Category:Scripting Commands OFP 1.46|GETMARKERSIZE]]
{{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 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