getMarkerPos: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= local |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Returns the position of a given marker. |= Description | |||
____________________________________________________________________________________________ | |||
| '''getMarkerPos''' marker |= Syntax | |||
|p1= marker: [[String]] - marker name |= Parameter 1 | |||
| [[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] | |||
_pos = getMarkerPos "MarkerOne"</pre> | |||
[ | returns [200,200,0] |= Example 1 | ||
____________________________________________________________________________________________ | |||
| [[setMarkerPos]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<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
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