<RetVar> = <RefObj> get subtype

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar> = <RefObj> get subtype

Post by mark_a_condren » Fri, 3. Dec 10, 12:48

<RetVar> = <RefObj> get subtype


<RetVar> = The command return will be stored in this variable.
<RefObj> = The object you wish to get the 'subtype' of.


Each ware or object belongs to a main and sub-category called maintype and subtype.
This instruction returns the 'subtype' of a particular object as entered in the command.


Example:

$target = get player tracking aim

skip if not $target
| $subtype = $target get subtype

This will return the 'subtype' of the current player target, if something is targeted.


Additional Information:

A list of Maintypes and their Subtypes can be found here.


Command Location:
Last edited by mark_a_condren on Sat, 4. Dec 10, 18:06, edited 2 times in total.

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

[TiP][49] 292555

Post by X2-Illuminatus » Fri, 10. Dec 10, 20:20

<RetVar> = <RefObj> get subtype


<RetVar> = Der Rückgabewert des Befehls wird in dieser Variable gespeichert.
<RefObj> = Das Objekt, dessen Maintype du ermitteln möchtest.


Jede Ware und jedes Objekt gehören zu einer Haupt- und einer Unterkategorie, die "Maintype" und "Subtype" genannt werden.
Dieser Befehl gibt den Subtype des gewählten Objekts zurück.


Beispiel:

$target = get player tracking aim

skip if not $target
| $subtype = $target get subtype

Dies gibt den 'Subtype' des aktuellen Spielerziels zurück, wenn etwas als Ziel ausgewählt ist.


Zusätzliche Information:

Eine Liste der Maintypes und Subtypes findet sich hier.


Zu finden unter:

Locked

Return to “MSCI Reference”