ja gut, das mit [THIS] ist mir klar, nur dachte ich damit ist auch gleichzeitig der $WING gemeint, da das Script ja auf [THIS] ( also dem wing ) läuft. Wenn $WING aber ein array sein sollte, dürfte
$WING->set wing command: {COMMAND_WING_ATTACK_SAME} target=$target target2=null
so nicht gehen! Eines der befehle aus dem script.
Evtl mach ich ja was beim Aufruf falsch??
Hier mal das halb

ganze script für das erstellen der flotte
Code: Select all
$n = size of array $ships
dec $n =
$ship.type = $ships[$n]
$leader = create ship: type=$ship.type owner={Xenon} addto=$sector x=$xloc y=$yloc z=$zloc
= [THIS]->call script '!config.aaa.job.config' : Ship=$leader
$leader->set race logic control enabled to [FALSE]
$leader->start task 0 with script 'aaa.invasion.main.fight.attack' and prio 0: arg1=null arg2=null arg3=null arg4=null arg5=null
= wait randomly from 10000 to 20000 ms
while $n
dec $n =
$ship.type = $ships[$n]
$creatxloc = $xloc + $n * 500
$ship = create ship: type=$ship.type owner={Xenon} addto=$sector x=$creatxloc y=$yloc z=$zloc
= [THIS]->call script '!config.aaa.job.config' : Ship=$ship
$ship->set race logic control enabled to [FALSE]
$ship->start task 0 with script 'aaa.invasion.main.fight.attack' and prio 0: arg1=null arg2=null arg3=null arg4=null arg5=null
$ship->interrupt task 0 with script '!wing.cmd.attacksame.std' and prio 1: arg1=$ship arg2=$leader arg3=null arg4=null
= wait randomly from 1000 to 2000 ms
end
die schiffe werden vorher per zufall in ein array geschrieben, wobei die oberste stelle immer das Führungsschiff ist. Soll ich also das ganze array als wing angeben?