@ <RetVar/IF><RefObj> follow <Var/Ship> with precision <Var/Number> m : timeout =<Var

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> follow <Var/Ship> with precision <Var/Number> m : timeout =<Var

Post by mark_a_condren » Mon, 13. Dec 10, 14:47

@ [skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> follow <Var/Ship> with
precision
<Var/Number> m : timeout= <Var/Number> ms


@ [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, this command will return a FLET_ response.
<RefObj> = The 'Object' that the command is to be run on. 'Valid' objects must be a 'Ship'.
<Var/Ship> = The target that you want followed.
<Var/Number> = The distance to be maintained between follower and followed as an integer.
<Var/Number> = Sets the length of time before this command 'times out' or stops.


Similar to follow object, except this one will time out after <Var/Number> milliseconds.

Returns;
Returns FLRED_TARGETREACHED upon success.
FLRET_TIMEOUT if the timeout period expires.
FLRET_ INTERRUPTED if the script executing this instruction is interrupted.
FLRET_BREAK if the target is invalid or if the target is destroyed or moves to another sector.
FLRET_INVALIDPARMS if <RefObj> is invalid.


Example:

@ $follow.return = $ship -> follow object $target with precision 5000 m : timeout =60000 ms

The ship $ship should fly to a position 5000 m from the target $target and stay at this range. This command will time out after 60000 ms or 60 seconds. This would put $ship within firing range of some long range weapons if it was being used as part of an attack run on $target.


Related Commands:

@ <RetVar/IF><RefObj> follow object <Var/Ship> with precision <Var/Number> m


Command Location:
  • »» Fly Commands
    @ <RetVar/IF><RefObj> follow <Var/Ship> with precision <Var/Number> m : timeout =<Var/Number> ms

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

[TiP][49] 293102

Post by X2-Illuminatus » Wed, 29. Dec 10, 17:51

@ [skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> follow <Var/Ship> with
precision
<Var/Number> m : timeout= <Var/Number> ms


@ [skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Die zurückgebene Information wird hier gespeichert. Wenn eine Variable genutzt wird, wird der Befehl eine FLET_ Antwort zurückgeben.
<RefObj> = Das Objekt, auf dem der Befehl ausgeführt wird. Dieses Objekt muss ein Schiff sein.
<Var/Ship> = Das Ziel, dem gefolgt werden soll.
<Var/Number> = Der Abstand, der zwischen Ziel und Verfolger eingehalten werden soll, als ganze Zahl.
<Var/Number> = Bestimmt die Zeitdauer bevor der Befehl ausläuft oder endet.


Ähnlich zu follow object, jedoch endet dieser Befehl nach <Var/Number> Millisekunden.

Rückgabewerte:
Gibt FLRED_TARGETREACHED bei Erfolg zurück.
FLRET_TIMEOUT wenn die gewählte Zeitdauer ausläuft.
FLRET_ INTERRUPTED wenn das Script, das diesen Befehl ausführt, unterbrochen wird.
FLRET_BREAK wenn das Ziel unzulässig ist, zerstört wird oder in einen anderen Sektor fliegt.
FLRET_INVALIDPARMS wenn <RefObj> unzulässig ist.


Beispiel:

@ $follow.return = $ship -> follow object $target with precision 5000 m : timeout =60000 ms

Das Schiff $ship soll zu einer Position 5000 m entfernt vom Ziel $target fliegen und dort bleiben. Dieser Befehl läuft nach 60000 ms oder 60 Sekunden aus. Dies würde $ship in die Waffenreichweite von Langstreckenwaffen bringen. Nützlich, wenn der Befehl als Teil eines Angriffsscriptes auf $target verwendet wird.


Ähnliche Befehle:

@ <RetVar/IF><RefObj> follow object <Var/Ship> with precision <Var/Number> m


Zu finden unter:
  • »» Fly Commands
    @ <RetVar/IF><RefObj> follow <Var/Ship> with precision <Var/Number> m : timeout =<Var/Number> ms

Locked

Return to “MSCI Reference”