<RetVar> = <RefObj> get y position

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

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

<RetVar> = <RefObj> get y position

Post by EmperorJon » Sat, 11. Sep 10, 08:52

<RetVar> = <RefObj> get y position

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

Finds the Y 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:

Alex Vanderbilt
Winner X3 Sektorquest
Posts: 2127
Joined: Thu, 4. May 06, 12:07
x3tc

[TiP][49] 286689

Post by Alex Vanderbilt » Sat, 2. Oct 10, 18:24

<RetVar> = <RefObj> get y position

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

Es wird die Y-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:

Locked

Return to “MSCI Reference”