Never mind, I have it fixed. Sleipir (from Sleipnir's Stuff) gave me the hint of making a dummy Primary weapon and the real weapon Secondary. The dummy does no damage, but has a range of 175. When the enemy comes near, the unit tries to attack, but it will try to attack with both weapons. And the second has a really short range, so it will run towards the enemy and attack it with secondary.
