Also I think worth mentioning that the same thing goes for range (unless I'm mistaken). Only models that are in range and have
LOS can fire. So if the front half of your unit is in range but the back half is not, only the front half can fire.
These rules are covered on page 16 + 17 of the rulebook