Enemy cannon only shoots if the player is within a certain range.