This command gets the position of a specific object as an array. The array consists of the X, Y, and Z coordinates. The command allocates an array. The position is the exact center of the specific object.
<RetVar> = The 'variable' storing the returned array.
<RefObj> = The specific object that you want the position of.
Example :
* a station was targeted by the player
$Station = get player tracking aim
$Location = $Station->get position as array
write to player logbook $Location
return null
The logbook output is in this format : ARRAY(3456,0,-19523)
Related Commands :
<RefObj> ->get distance to: array=<Var/Array>
<RetVar> = get distance: position array1=<Var/Array> array2=<Var/Array>
Command Location :
- »General Object Commands
<RetVar> = <RefObj> get position as array