Divorce and custody issues can be quite complicated when one or both of the parties is a servicemember. For example, if one receives military orders overseas, it may necessitate a change in custody or visitation. While you are serving abroad, the children may get accustomed to a living with the other parent, and thus a "temporary" arrangement may end up as the "permanent." Here, the Court is only concerned with the best interests of the children, rather than fairness to the parent.
Another tricky issue for military members is fault-based divorce grounds. Beware that an admission to adultery can potentially present penalties and exposure to prosecution under the Uniform Code of Military Justice. You also must be cautious about supporting your family if you are a military member, you can also face discipline if you fail to support them, even if there has been no court order or agreement. There are specific rules for division of military retirement benefits, and it is possible to waive those rights if you are not careful. If you are a service member contemplating divorce or separation, it is imperative to get counsel from an experience attorney in this field. Be sure to ask if the attorney has experience with military divorce.