How to move a player character within range of Clicked enemy(ARPG template)

I’m working on an Action RPG using the ARPG template, with the click to move functionality. I would like to have the character move to a location within range of the enemy based off the weapon range, similar to League of Legends. Has anyone created a similar system or could offer some advice. Thanks in advance