<RetVar/IF><RefObj> get marines array

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 marines array

Post by X2-Illuminatus » Sat, 5. Feb 11, 14:57

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get marines array


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = The variable where the requested information is stored. This will be an array.
<RefObj> = The object that the command is to be run on. Valid objects are ships and stations.


Returns the marines onboard the selected <RefObj> as an array.


Example:

Let's say you have two marines onboard your ship.

$marines.arr = [PLAYERSHIP] -> get marines array
write to player logbook $marines.arr
return null

This will write the names of the marines onboard the [PLAYERSHIP] to the logbook in the format: Array ( Ho t'Nst, Mo t'Nnt )


Related Commands:

<RetVar/IF><RefObj> get passenger array


Command Location:
Last edited by X2-Illuminatus on Fri, 25. Feb 11, 17:28, edited 2 times in total.

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

[TiP][49] 296296

Post by Alex Vanderbilt » Sun, 6. Feb 11, 11:31

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get marines array

[skip|else] if [not]|while [not]| = Mögliche Bedingung, die mit diesem Kommando verwendet werden kann.
<RetVar/IF> = Die Variable, in der die Informationen gespeichert werden. Die Variable stellt ein Array dar.
<RefObj> = Das Objekt, auf dem das Kommando ausgeführt werden soll. Zulässige Objekte sind Schiffe und Stationen.

Gibt die Marineinfanteristen an Bord eines <RefObj> als Array aus.


Beispiel:

Als Beispiel werden 2 Marineinfanteristen an Bord eines Schiffes angenommen:

$marines.arr = [PLAYERSHIP] -> get marines array
write to player logbook $marines.arr
return null

Das Kommando schreibt die Marineinfanteristen an Bord des [PLAYERSHIP] in das Logbuch des Spielers. Die Nachricht ist wie folgt formatiert: Array ( Ho t'Nst, Mo t'Nnt )


Verwandte Kommandos:

<RetVar/IF><RefObj> get passenger array


Zu finden unter:

Return to “MSCI Reference”