<RefObj> set ship disabled to <Var/Number>

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

corbinbird
Posts: 49
Joined: Tue, 2. May 06, 18:58
x3tc

<RefObj> set ship disabled to <Var/Number>

Post by corbinbird » Sat, 8. Jan 11, 03:19

<RefObj> -> set ship disabled to <Var/Number>


<RefObj> = The 'Ship' that the script is to be run on.
<Var/Number> = The constant or its numeric equivalent.


This command disables the engines of the selected ship. It will have no acceleration or response to navigation commands. This command was used in X3R

This command has two conditionals. The ship it is to be run on is the first. The second is the constant.

The <RefObj> must refer to a specific ship. The second conditional is the [TRUE] / [FALSE] constant or its numeric equivalent.


Example:

The target for the test script was an Player owned M3 Eclipse. Also changed the Ownership of the ship to Neutral Race and Argon for testing.

* test script for 'set ship disabled to'

$Testee = get player tracking aim
$Testee -> set ship disabled to [TRUE]

return null

Testing Results : When tested in X3TC v3.0, the engines still worked just fine.


Note:

Apparently this command is disabled/non functional in X3TC v3.0
Comments and/or corrections are very welcome.


Command Location:
Last edited by corbinbird on Tue, 11. Jan 11, 01:11, edited 2 times in total.

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

[TiP][49] 294749

Post by X2-Illuminatus » Thu, 20. Jan 11, 19:34

<RefObj> -> set ship disabled to <Var/Number>


<RefObj> = Das Schiff, auf dem das Script laufen soll.
<Var/Number> = Die Konstante oder ihr numerisches Äquivalent.


Dieser Befehl deaktiviert die Triebwerke des ausgewählten Schiffes. Es verliert hierdurch jegliche Beschleunigung und reagiert nicht auf Navigationsbefehle. Dieser Befehl wurde in X3:R genutzt.

Das <RefObj> muss auf ein spezifisches Schiff verweisen. Die zweite Bedingung muss eine [TRUE] (wahr) / [FALSE] (falsch) Konstante oder ihr numerisches Äquivalent sein.


Beispiel:

Das Ziel des Testscriptes war eine spielereigene Eklipse (M3). Zu Testzwecken wurde der Besitzer auch auf Neutral oder Argonen gesetzt.

* Testscript für 'set ship disabled to'

$Testee = get player tracking aim
$Testee -> set ship disabled to [TRUE]

return null

Testergebnisse: Getestet in X3:TC Version 3.0 hat der Befehl keinerlei Auswirkungen auf das Zielschiff.

Beachte:

Anscheinend hat dieser Befehl in X3:TC v3.0 keine Funktion


Zu finden unter:

Return to “MSCI Reference”