Edward,
Lots of variables and you don't pin down your circumstances but there is some useful generic info here though.
If Death Occurs Whilst Serving
Two tabs in this one below to flip through.
https://www.gov.uk/search?q=AFPS#dep...policy-results
I would suggest Forces Pension Society or SPVA for chapter and verse once you mention your circumstances. Vovpop is a member here and knows his/her onions.