<RetVar/IF><RefObj> get follow mode

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/IF><RefObj> get follow mode

Post by mark_a_condren » Mon, 13. Dec 10, 19:05

[skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> get follow mode


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = If the command is to 'return' information. If a variable is used, the command will return here.
<RefObj> = The ship you wish to check to see if it is in 'follow mode'.


Returns [TRUE] if <RefObj> is currently following another object, [FALSE] if not.


Example:

$target = get player tracking aim

skip if not $target is of class ship
| $follow.mode.active = $target -> get follow mode

This will check the state of 'Follow mode' for the selected ship $target and store the result in $follow.mode.active


Related Commands:

<RefObj> set follow mode <Var/Number>


Command Location:

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

[TiP][49] 293119

Post by X2-Illuminatus » Sat, 26. Mar 11, 18:18

[skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> get follow mode


[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.
<RefObj> = Das Schiff, von dem du wissen möchtest, ob es gerade im "Folge-Modus" ist.


Gibt [TRUE] (wahr) zurück, wenn <RefObj> gerade einem anderen Objekt folgt, [FALSE] (falsch) wenn nicht.


Beispiel:

$target = get player tracking aim

skip if not $target is of class ship
| $follow.mode.active = $target -> get follow mode

Dies überprüft den Status des "Folge-Modus" des gewählten Schiffes $target und speichert das Ergebnis in $follow.mode.active.


Verwandte Befehle:

<RefObj> set follow mode <Var/Number>


Zu finden unter:

Locked

Return to “MSCI Reference”