Problem with point and click

Hello everyone,
I’m working on a TopDown game and I’m using the following blueprint to move the character with a mouse click.

I’m facing this problem: when I click on an enemy, I want my character to just attack the enemy from the distance and not move it to the clicked location. Currently the character is both attacking the enemy and moving to clicked location.

Does anyone have any suggestion?

Thanks in advance!

Hi @emmedand

Clicking the little triangle in the BreakHitResult, will expand it in more info,
Pin out the HitActor, and use “Get class” this will give you the class of the hitten actor, so you can check with a “==” if there is a enemy .
If is an enemy, start attack
if is not an enemy, walk there

Thank you very much! It worked perfectly!