Hmmmm, I just had an idea. On vanill ships the wings are seperate. This means that there has to be some sort of subroutine tht keeps them connected to the ship.
We could possibly create something where if the docking lights come on, or cruise engines engages etc etc...the wings move from position A, to position B (Folded), how to move them slowly is another question, move them to point after point? Is it possible to move them...? I think it is....
I wish I knew how to code:(Might be more help then.