A heavy bolter/assault cannon Sentry gun will fire at the nearest non-vehicle unit it can hit. A lascannon/multi-melta Sentry gun will fire at the closest enemy vehicle or monstrous creature it can hit. If no preferred target can be hit they will shoot at non-preferred targets.
Building an army? Create, validate and share your list with New Recruit, army builder for Warhammer 40,000 3rd Edition and many more games.
Try the builder