<RetVar> = <RefObj> get station 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

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

<RetVar> = <RefObj> get station array from sector

Post by X2-Illuminatus » Fri, 29. Jul 11, 13:50

<RetVar> = <RefObj> get station array from sector


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


This command returns all stations that are in the as <RefObj> selected sector.


Example:

$sector=[PLAYERSHIP] -> get sector
$station.arr=$sector -> get station array from sector
return null

This saves all stations in the current player sector in the array $station.arr.


Related Commands:

<RetVar> = <RefObj> get factory array from sector
<RetVar> = <RefObj> get dock array from sector


Command Location:

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

[TiP][49] 304973

Post by X2-Illuminatus » Sun, 2. Oct 11, 21:45

<RetVar> = <RefObj> get station array from sector


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


Dieser Befehl gibt alle Stationen zurück, die sich im als <RefObj> ausgewählten Sektor befinden.


Beispiel:

$sector=[PLAYERSHIP] -> get sector
$station.arr=$sector -> get station array from sector
return null

Dies speichert alle Stationen im aktuellen Spielersektor im Array $station.arr.


Verwandte Befehle:

<RetVar> = <RefObj> get factory array from sector
<RetVar> = <RefObj> get dock array from sector


Zu finden unter:

Locked

Return to “MSCI Reference”