<RetVar/IF><RefObj> get all stationary objects: include asteroids=<Var/Boolean>

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: 24969
Joined: Sun, 2. Apr 06, 16:38
x4

<RetVar/IF><RefObj> get all stationary objects: include asteroids=<Var/Boolean>

Post by X2-Illuminatus » Thu, 28. Jul 11, 13:49

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get all stationary objects: include asteroids=<Var/Boolean>


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will contain a array filled with all stationary objects in the selected sector.
<RefObj> = A sector.
<Var/Boolean> = A TRUE or FALSE value or its representing number 1 or 0.


This command returns all stationary objects (objects that cannot move on their own) of the as <RefObj> selected sector. If "include asteroids" is set to TRUE, the array will also contain asteroids.


Example:

$sector=[PLAYERSHIP] -> get sector
$object.arr=$sector -> get all stationary objects: include asteroids=[TRUE]
return null

This will save all stationary objects in the current player sector in the array $object.arr.


Command Location:

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

[TiP][49] 304904

Post by X2-Illuminatus » Sat, 1. Oct 11, 13:25

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get all stationary objects: include asteroids=<Var/Boolean>


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Nutze eine Variable, wenn der Befehl eine Information zurückgeben soll. Wenn eine Variable genutzt wird, wird sie ein Array enthalten, das mit all stationären Objekten im Sektor gefüllt ist.
<RefObj> = Ein Sektor.
<Var/Boolean> = Ein TRUE (wahr) oder FALSE (falsch) Wert oder seine entsprechende Ziffer 1 oder 0.


Dieser Befehl gibt alle stationären Objekte (Objekte, die sich nicht aus eigener Kraft bewegen können) in dem als <RefObj> ausgewählten Sektor zurück. Wenn "include asteroids" auf TRUE gesetzt ist, wird das Array auch Asteroiden enthalten.


Example:

$sector=[PLAYERSHIP] -> get sector
$object.arr=$sector -> get all stationary objects: include asteroids=[TRUE]
return null

Dies speichert alle stationären Objekte im aktuellen Spielersektor im Array $object.arr.


Zu finden unter:

Return to “MSCI Reference”