<RetVar> = <RefObj> get z 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: 7178
Joined: Mon, 29. Dec 08, 21:58
x3tc

<RetVar> = <RefObj> get z position

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

<RetVar> = <RefObj> get z position

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

Finds the Z 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: 2120
Joined: Thu, 4. May 06, 12:07
x3tc

[TiP][49] 286690

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

<RetVar> = <RefObj> get z position

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

Es wird die Z-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”