Show and hide enemy units automatically based on distance from friendly units

Is it possible to have units remain hidden on the opponents map and appear automaticaly when they are in an adjacent hex or within a certain distance?