The distance-ship-subsystem sexp has now been implemented. Along with the end-mission sexp, this will allow Alpha 1 to realistically depart to ship fighterbays, without needing to jump out.

This sexp not only works with fighterbays - it works with any ship subsystem. So you can test how far a bomber is from a turret, or how far you are from the engines (causing your wingman to yell, "Watch out for the engine wash!") or whatever you want.

Some caveats apply, though. Unfortunately for this sexp, all the Volition fighterbay subsystems seem to be located at the very tip of the fighterbay entrance on the model. The sexp measures distance from the center of the subsystem. When I was testing the sexp with a Typhon, I found that you needed to set the distance trigger to 50 meters or above in order to prevent Alpha 1 from sneaking into the hangar along the wall (as opposed to entering the bay perfectly centered in the tunnel). This by itself is not a big problem, but since it causes the sexp to fire when Alpha 1 is 50 meters away in any direction, it can go off before Alpha 1 has even entered the bay.
I believe the solution to this is to create an additional hidden subsystem, called "fighterbay exit" or whatever, and place it further inside the tunnel. Don't move the location of the existing fighterbay, because it's needed that way for bomb locks and so forth. But use this hidden subsystem as the trigger for Alpha 1, so that the fighter will actually fly partway into the tunnel before the mission ends.
EDIT:
I just realized something. You don't need to modify the model file at all (and I think this sexp won't work with hidden subsystems anyway). All you need to do is triangulate Alpha 1's position with respect to the other subsystems on the ship. So if you were departing into fighterbay 2 of GVD Typhon 1, your sexp would be
when
--and
----<
------distance-ship-subsystem
--------Alpha 1
--------GVD Typhon 1
--------fighterbay 2
------140
----<
------distance-ship-subsystem
--------Alpha 1
--------GVD Typhon 1
--------fighterbay 1
------620
--end-mission
It works, I tried it.
