getMarkerSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|GETMARKERSIZE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|GETMARKERSIZE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GETMARKERSIZE]]
[[Category:Scripting Commands ArmA|GETMARKERSIZE]]


| ofp |= Game name


<h2 style="color:#000066"> '''getMarkerSize ''marker'''''</h2>
|1.21|= Game version


|arg= local |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns the size of a given marker. |= Description
____________________________________________________________________________________________


'''marker:''' [[String]]
| '''getMarkerSize''' marker |= Syntax


'''Type of returned value:'''
|p1= marker: [[String]] - marker name |= Parameter 1


[[Array]]
| [[Array]] - 
The returned array contains two values: [a,b] where a is the size in the markers a-axis, b the size in its b-axis (in meters). |= Return value
____________________________________________________________________________________________
 
|x1= <pre>"MarkerOne" setMarkerSize [100,200]


'''Compatibility:'''
_size = getMarkerSize "MarkerOne"</pre>


Added in version '''1.21'''
returns [100,200] |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[setMarkerSize]] |= See also


Get marker size.
}}


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


<!-- Note Section END -->
</dl>


'''Examples:'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|GETMARKERSIZE]]
_mSize = '''getMarkerSize''' "MarkerOne"
[[Category:Scripting Commands OFP 1.96|GETMARKERSIZE]]
[[Category:Scripting Commands OFP 1.46|GETMARKERSIZE]]
[[Category:Scripting Commands ArmA|GETMARKERSIZE]]

Revision as of 00:21, 2 August 2006

Hover & click on the images for description

Description

Description:
Returns the size of a given marker.
Groups:
Uncategorised

Syntax

Syntax:
getMarkerSize marker
Parameters:
marker: String - marker name
Return Value:
Array - The returned array contains two values: [a,b] where a is the size in the markers a-axis, b the size in its b-axis (in meters).

Examples

Example 1:
"MarkerOne" setMarkerSize [100,200]

_size = getMarkerSize "MarkerOne"
returns [100,200]

Additional Information

See also:
setMarkerSize

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

Notes

Bottom Section