Attacks will be long-range or short-range depending on how far you are from the opponent. If you rush in and hit either trigger, you automatically score a close-range attack and get the Achievement. You'll know it's close range if you aren't firing a projectile and take off a huge chunk of energy from the opponent.