<RetVar/IF><RefObj> get attack target

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 attack target

Post by mark_a_condren » Wed, 15. Dec 10, 13:50

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> -> get attack target


[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 it will store the information here. In this case it would be the 'Target'.
<RefObj> = The ship you wish to get the attack target of.


Returns the attack target of a ship as set by the 'set attack target to' instruction.


Example:

$ship.target = $ship-> get attack target

$ship.target would be the target $ship is set to attack.


Related Commands:

<RefObj> set attack target to <Value>


Command Location:

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

[TiP][49] 293225

Post by X2-Illuminatus » Fri, 17. Dec 10, 13:09

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> -> get attack target


[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. In diesem Fall wäre dies das Ziel.
<RefObj> = Das Schiff, dessen Angriffsziel du ermittlen möchtest.


Gibt das Angriffsziel eines Schiffes, das mit dem "set attack target to"-Befehl gesetzt wurde, zurück.


Beispiel:

$Schiff.Ziel = $Schiff-> get attack target

$Schiff.Ziel wäre das Angriffsziel von $Schiff.


Zugehörige Befehle:

<RefObj> set attack target to <Value>


Zu finden unter:

Locked

Return to “MSCI Reference”