getPos: 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|GETPOS]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|GETPOS]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GETPOS]]
[[Category:Scripting Commands ArmA|GETPOS]]


| ofp |= Game name


<h2 style="color:#000066"> '''getPos ''obj'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


|  |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''getPos''' |= Syntax


'''obj:''' [[Object]]
|  |= Return value
____________________________________________________________________________________________


'''Type of returned value:'''
|  |= See also


[[Array]]
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
Object position in format [[Position]]
<dl class="command_description">
<!-- Note Section BEGIN -->


See also: [[setPos]]
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Examples:'''
[[Category:Scripting Commands|GETPOS]]
 
[[Category:Scripting Commands OFP 1.96|GETPOS]]
_pPos = '''getPos''' [[player]]
[[Category:Scripting Commands OFP 1.46|GETPOS]]
 
[[Category:Scripting Commands ArmA|GETPOS]]
To get the x,y and z coordinates separately use:<br>
_pPosX = '''getPos''' ''unitname'' select 0<br>
_pPosY = '''getPos''' ''unitname'' select 1<br>
_pPosZ = '''getPos''' ''unitname'' select 2

Revision as of 01:22, 2 August 2006

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Uncategorised

Syntax

Syntax:
getPos
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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