How to create a simple enemy attacking range logic that would work with its melee logic

So, I have an issue with creating a range logic in my enemy character. the Enemy Blueprint has a simple melee custom event called Attack Player and then I tried to create another custom event called far attack and check far attack, for when the player is far away but when running my game, I see that the logic is not doing as I intended mostly because I pieced codes together from different sources. I will be dropping some screenshots and a video of how everything is so if anyone can help me out with this it would be amazing, and I would really appreciate the help.