[WiP] <RefObj> set position: x=<Var/Number> y=<Var/Number> z=<Var/Number>

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

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

[WiP] <RefObj> set position: x=<Var/Number> y=<Var/Number> z=<Var/Number>

Post by EmperorJon » Wed, 8. Sep 10, 18:46

<RefObj> set position: x=<Var/Number> y=<Var/Number> z=<Var/Number>

<RefObj> = The object the script effects.
<Var/Number> = A number or a numeric variable for the X,Y and Z coordinates.

This command sets the current X,Y and Z location of <RefObj> to the <Var/Number> input into each field.

Setting the position of an object may cause it to be 'bounced' away when collision detection interferes, especially if the object moves directly ontop of another object. This is especially noticable in Terran sectors, where stations have very large collision boxes.

The command only moves an object within its current sector.

It is moved instantaneously without a delay. It disappears and reappears in the set location.

Coordinates are in meters.

Example:

[PLAYERSHIP] set position: x=10000 y=-10000 z=0

Will set the [PLAYERSHIP] to 10km across to the left, 10km down and 0km backwards or forwards.


Command Location:
Last edited by EmperorJon on Wed, 8. Sep 10, 21:27, edited 3 times in total.

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

[TiP][49] 286474

Post by Alex Vanderbilt » Sat, 18. Sep 10, 17:33

<RefObj> set position: x= <Var/Number> y=<Var/Number> z=<Var/Number>

<RefObj> = Das vom Skript betroffene Objekt.
<Var/Number> = Eine Nummer oder numerische Variable für eine X, Y und Z Koordinate.

Dieses Kommando setzt die momentanen X,Y and Z Koordinaten <RefObj> auf die in <Var/Number> in den einzelnen Feldern eingegebenen Werte.

Aufgrund der Kollisionsabfrage kann es vorkommen, dass ein Objekt auf einen anderen Standort springt. Das ist häufig der Fall, wenn ein Objekt sehr nah an ein anderes Objekt gesetzt wird. Besonders offensichtlich ist dieses Verhalten bei terranischen Stationen, die eine sehr große Kollisionsbox haben.

Das Kommando kann nur Objekte innerhalb des Sektors, in dem sich das Objekt befindet, bewegen.

Das Objekt wird augeblicklich versetzt. Es verschwindet kurz, nur um dann an den Zielkoordinaten wieder aufzutauchen.

Die Koordinaten werden in Metern angegeben.


Beispiel:

[PLAYERSHIP] set position: x=10000 y=-10000 z=0

[PLAYERSHIP] wird um 10 Km nach links, 10 Km nach unten und 0 Km nach hinten oder vorn im Sektor versetzt.


Zu finden unter:

Post Reply

Return to “MSCI Reference”