This code shall be applicable in all places where military forces are present with any personnel who are on orders to be in the active service of the state.