<RetVar> = get player ship

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
Striker304
Posts: 890
Joined: Fri, 26. Mar 10, 22:15
x3tc

<RetVar> = get player ship

Post by Striker304 » Sun, 12. Sep 10, 17:00

<RetVar> = get player ship

<RetVar> = The variable where the requested information is put.

This command returns the player ship. Note that it works exactly the same as the constant [PLAYERSHIP].

Example:

$plship = get player ship
$tmp = $plship -> add 200 units of Energy Cells

This puts 200 Energy Cells into the cargo bay of the player ship.

Note:
Better than using this command is to use the constant [PLAYERSHIP], which is shorter and also is more efficient.


Command Location:
Last edited by Striker304 on Mon, 13. Dec 10, 16:26, edited 3 times in total.

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 21465
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 286771

Post by X2-Illuminatus » Tue, 4. Jan 11, 20:16

<RetVar> = get player ship

<RetVar> = Die Variable, in der die geforderte Information gespeichert wird.

Dieser Befehl gibt das Spielerschiff zurück. Beachte, dass er das gleiche macht, wie die Konstante [PLAYERSHIP].

Beispiel:

$plship = get player ship
$tmp = $plship -> add 200 units of Energiezellen

Dies fügt 200 Energiezellen dem Frachtraum des Spielerschiffs hinzu.

Beachte:
Statt diesen Befehl zu nutzen, empfiehlt es sich direkt mit der Konstanten [PLAYERSHIP] zu arbeiten, da sie kürzer und effizienter ist.


Zu finden unter:

Locked

Return to “MSCI Reference”