ohhh I like that!That's the main idea, here's the add-on. Each M5 should be able to be given the command to launch when they decide to attack an enemy as an extra fire support to the M6, especially as missile carriers. Each M5 would be a wingman to its parent M6. This, i think, would need a specific command like "Launch if enemy within X kilometers" or perhaps "When target is decided, launch and attack"
Is this possible? This would give the opportunity to create fighter wings that deploy when the course of action is decided instead of tagging along outside.

It would be possible to do by creating a modified version of the the 'assign as wingman command'. it would have to test to see if where it is docked has targeted anything, then undock if it has, behave as a normal wingman on missile defence, then dock when nothing has been targeted.
gonna be tricky to get right but i'll have a go

Gonna tweak it a bit more in version 4 as theres still a few small niggles eg, occasionaly the wingman flies to close and breaks 'SETA'. But as it is it works pretty well.Never used a script, never even downloaded one, but if Wingman Missile Defence works like I think/hope/expect it will, then I may be playing a modded game from now on. Just might save my a$$ from time to time. (and if the time between checking to see if the target ship has been captured could be reduced a tad, so much the better, two seconds is a long time in the combat zone! )
Point taken about the capture, but it's hard to alter because I think I'll have to alter the timings of the attack runs etc. Will have a try and see what happens.

Made really good progress last night, have the 'resupply fighter wing' and 'fighter wing bombing' run commands working (buggy but working).
MY GOD THIS IS FUN!!

Spent ages just dispatching a 10 nova formation loaded with missiles from an m1 on 'bombing runs' against anything I took a dislike to. When they returned, was able to resupply all of them in seconds from the leaders command menu.... sweet...