When the times are predetermined it's pretty easy. Just use an automatic trigger to mark the time and tie it to a script that sets the depth for a couple minutes. As a precaution, you may also want to have doctrine language tied to the trigger that tests for weapons in the water, or any other conditions under which you think the AI subs should not link.
__________________
|