getPos

From Bohemia Interactive Community
Revision as of 10:57, 20 May 2006 by Thobson (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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