<RetVar> = <RefObj> get player owned ship array from sector

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
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 25128
Joined: Sun, 2. Apr 06, 16:38
x4

<RetVar> = <RefObj> get player owned ship array from sector

Post by X2-Illuminatus »

<RetVar> = <RefObj> get player owned ship array from sector


<RetVar> = A variable where the requested information is stored as an array.
<RefObj> = A variable containing a sector.


This will return an array of player owned ships that are currently in the as <RefObj> selected sector but aren't docked to any ship or station.


Example:

$sector= get sector from universe index: x=1, y=3
$ship.arr=$sector -> get player owned ship array from sector
return null

This will save all player owned ships that are currently in Argon Prime ( coordinates 1/3 ) and not docked to any ship or station in the array $ship.arr.


Related Commands:

<RetVar> = <RefObj> get player owned station array from sector
<RetVar/IF><RefObj> get owned ships: class/type=<Value>


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

[TiP][49] 304964

Post by X2-Illuminatus »

<RetVar> = <RefObj> get player owned ship array from sector


<RetVar> = Eine Variable, in der die geforderte Information gespeichert wird.
<RefObj> = Eine Variable, die einen Sektor enthält.


Dies gibt ein Array mit spielereigenen Schiffen zurück, die sich zurzeit im als <RefObj> ausgewählten Sektor befinden, aber nicht an ein Schiff oder eine Station angedockt sind.


Beispiel:

$sector= get sector from universe index: x=1, y=3
$ship.arr=$sector -> get player owned ship array from sector
return null

Dies speichert alle spielereigenen Schiffe, die sich in Argon Prime ( Sektorkoordinaten 1/3 ) befinden und nicht an ein Schiff oder eine Station angedockt sind, im Array $ship.arr.


Verwandte Befehle:

<RetVar> = <RefObj> get player owned station array from sector
<RetVar/IF><RefObj> get owned ships: class/type=<Value>


Zu finden unter:

Return to “MSCI Reference”