see
HERE
If you do want to do it.
You need the unit set to be flak, the gun set to flak (type 4), and remove its sabot data (this will act as a minimum range and block the gun from firing at closer stuff)
Haha too slow looking up the other post and Ninja'ed by Andy
