Difference between revisions of "getPos"

From Bohemia Interactive Community
Jump to navigation Jump to search
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

Template:Command

Notes

Bottom Section