getPos: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
'''Description:''' | '''Description:''' | ||
Object position in format [[Position]] | Object position in format [[Position]] | ||
See also: [[setPos]] | |||
Revision as of 09:35, 21 May 2006
getPos obj
Operand types:
obj: Object
Type of returned value:
Description: Object position in format Position
See also: setPos
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