getMarkerPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|GETMARKERPOS]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|GETMARKERPOS]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GETMARKERPOS]]
 
[[Category:Scripting Commands ArmA|GETMARKERPOS]]
| ofp |= Game name
 
|1.00|= Game version


|arg= local |= Arguments in MP
____________________________________________________________________________________________


<h2 style="color:#000066"> '''getMarkerPos ''markerName'''''</h2>
| Returns the position of a given marker. |= Description
____________________________________________________________________________________________


| '''getMarkerPos''' marker |= Syntax


'''Operand types:'''
|p1= marker: [[String]] - marker name |= Parameter 1


'''markerName:''' [[String]]
| [[Position]] - 
The returned position is an array of format [x,y,z], where z equals always 0 for markers. A markers altitude cannot be changed. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>"MarkerOne" setMarkerPos [200,200,200]


'''Type of returned value:'''
_pos = getMarkerPos "MarkerOne"</pre>


[[Array]]
returns [200,200,0] |= Example 1
____________________________________________________________________________________________


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


Returns the marker positon in format '''[x, y, z]'''.
}}


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


'''Example:'''
<!-- Note Section END -->
</dl>


_mPos = '''getMarkerPos''' "MarkerOne"
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|GETMARKERPOS]]
[[Category:Scripting Commands OFP 1.96|GETMARKERPOS]]
[[Category:Scripting Commands OFP 1.46|GETMARKERPOS]]
[[Category:Scripting Commands ArmA|GETMARKERPOS]]

Revision as of 00:21, 2 August 2006

Hover & click on the images for description

Description

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

Syntax

Syntax:
getMarkerPos marker
Parameters:
marker: String - marker name
Return Value:
Position - The returned position is an array of format [x,y,z], where z equals always 0 for markers. A markers altitude cannot be changed.

Examples

Example 1:
"MarkerOne" setMarkerPos [200,200,200]

_pos = getMarkerPos "MarkerOne"
returns [200,200,0]

Additional Information

See also:
setMarkerPos

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