I have all enemy fighters have a creation script with this function. The spawned fighters appear to receive follow this function perfectly; however, the already existing fighters ignore the target command. Using prints, I know this function is being called and that the right arguments are being passed to the target function with usually one or two fighters out of four slated to attack me. So I have no clue why this function is not working on pre-existing fighters.

I originally had this function called within the nav creation script with the enemy fighter shipid as the argument, but that obviously wasn't working.

The only thing I can think of is that the shipid is not being passed with quotes.

Edit: I tried the LUA tostring() function, but that didn't fix the issue.

Admiral

I even added in a AI disable/enable commands around the setTarget and they still come after me.

On another note, my wingman in a shrike managed to take out the destroyer and actually contributed somewhat in its destruction (at least 3 to 5 successful light torps hits, which is really good considering she was just bumping randomly around the hull of the Orca). She actually knocked out both the bridge and engine; course it was pure luck she was near the components when launching some of those torpedoes, but a kill is a kill.

So the AI appears to be improving, at least tangentially (better torp AI, improved wing AI, and bombing run AI - at least bombers are firing torps now). Though, sometimes those torpedoes just want to go curving away from the components if the trajectory is not dead-on, but WCSO had a similar (though less common) problem. Actually errant torps would probably add to the 'realism' of the combat by thinking that the alien capships are using anti-torp 'electronic' countermeasures. Of course, a head-on trajectory would make torps harder to deflect.

Oh and one thing I found that made flying the shrike much more bearable: increasing the rear turret's refire rate. (Seriously, 1 shot per second? That was the refire rate in WCSO?) Anyway cranking it up to 4 shots per second allowed me to get some of those bogeys off my tail long enough to turn around and nail them with charging mass driver fire. I think I killed one or two actually with just the rear turret (of course they morays and squids).

I have all enemy fighters have a creation script with this function. The spawned fighters appear to receive follow this function perfectly; however, the already existing fighters ignore the target command. Using prints, I know this function is being called and that the right arguments are being passed to the target function with usually one or two fighters out of four slated to attack me. So I have no clue why this function is not working on pre-existing fighters.

I originally had this function called within the nav creation script with the enemy fighter shipid as the argument, but that obviously wasn't working.

The only thing I can think of is that the shipid is not being passed with quotes.

Edit: I tried the LUA tostring() function, but that didn't fix the issue.

Vice Admiral

I even added in a AI disable/enable commands around the setTarget and they still come after me.

On another note, my wingman in a shrike managed to take out the destroyer and actually contributed somewhat in its destruction (at least 3 to 5 successful light torps hits, which is really good considering she was just bumping randomly around the hull of the Orca). She actually knocked out both the bridge and engine; course it was pure luck she was near the components when launching some of those torpedoes, but a kill is a kill.

So the AI appears to be improving, at least tangentially (better torp AI, improved wing AI, and bombing run AI - at least bombers are firing torps now). Though, sometimes those torpedoes just want to go curving away from the components if the trajectory is not dead-on, but WCSO had a similar (though less common) problem. Actually errant torps would probably add to the 'realism' of the combat by thinking that the alien capships are using anti-torp 'electronic' countermeasures. Of course, a head-on trajectory would make torps harder to deflect.

Oh and one thing I found that made flying the shrike much more bearable: increasing the rear turret's refire rate. (Seriously, 1 shot per second? That was the refire rate in WCSO?) Anyway cranking it up to 4 shots per second allowed me to get some of those bogeys off my tail long enough to turn around and nail them with charging mass driver fire. I think I killed one or two actually with just the rear turret (of course they morays and squids).