[WiP] <RetVar> = <RefObj> get x position

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

User avatar
EmperorJon
Posts: 9378
Joined: Mon, 29. Dec 08, 20:58
x3tc

[WiP] <RetVar> = <RefObj> get x position

Post by EmperorJon »

<RetVar> = <RefObj> get x position

<RetVar> = The variable where requested information is put in numeric form.
<RefObj> = The object from which the value is taken.

Finds the X position coordinate of any object and sets it as a numeric variable.

Coordinates are in meters.


Example:

$PlyX = [PLAYERSHIP] get x position
$PlyY = [PLAYERSHIP] get y position
$PlyZ = [PLAYERSHIP] get z position

This would get, as the 3 variables $PlyX,$PlyY and $PlyZ, the full position of the playership in X,Y,Z coordinates.


Command Location:
Last edited by EmperorJon on Sat, 11. Sep 10, 10:50, edited 1 time in total.
Alex Vanderbilt
Winner X3 Sektorquest
Posts: 2127
Joined: Thu, 4. May 06, 12:07
x3tc

[TiP][49] 286688

Post by Alex Vanderbilt »

<RetVar> = <RefObj> get x position

<RetVar> = Die Variable, in die die angeforderten Informationen gespeichert werden.
<RefObj> = Das Objekt, von dem die Informationen stammen.

Es wird die X-Koordinate ermittelt und als numerischer Wert gespeichert.

Koordinaten werden in Metern angegeben.

Beispiel:


$PlyX
= [PLAYERSHIP] get x position
$PlyY = [PLAYERSHIP] get y position
$PlyZ = [PLAYERSHIP] get z position

Hier würde in Form der 3 Variablen $PlyX,$PlyY and $PlyZ die genaue Position des Spielerschiffs als X, Y & Z-Koordinaten ausgegeben.


Zu finden unter:

Return to “MSCI Reference”