getPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 23: Line 23:


_pPos = '''getPos''' [[player]]
_pPos = '''getPos''' [[player]]
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 10:57, 20 May 2006


getPos obj


Operand types:

obj: Object

Type of returned value:

Array

Description: Object position in format Position


Examples:

_pPos = getPos player

To get the x,y and z coordinates separately use:
_pPosX = getPos unitname select 0
_pPosY = getPos unitname select 1
_pPosZ = getPos unitname select 2