There are some cards or effects that tell you to attack a target who is within x spaces of you. For example, the Marshal class card 'I am the Law':
Exhaust this card after a monster within 2 spaces of you resolves an attack that affects you. Perform an attack that targets that monster. Then, you may test . If you pass, suffer 1 , and that monster gains 1 condition of your choice.
Or the Heroic Feat of Andira Runehand:
: Choose 1 hero within 3 spaces of you. Then, perform an attack that targets a monster within 3 spaces of you. The chosen hero recovers equal to twice the amount of the target monster suffers from this attack.
It seems pretty self explanatory to me, but that means that you just, perform the attack, right? So even if you have a melee weapon equipped so you would normally be unable to attack a target 2 or 3 spaces away, you perform the attack, right?