READ ALL
The move is correct, you need to implement a distance to the selected actor, once it is <= you attack.
however, if you want to do something generic for each kind of object, you require the use a BP Interface.
TO DO:
Add the INTERFACE to both Controller and object.
Once youre close to your object, execute interact CALL to the actor.
To implement this on your object, just add the event: (you can do what you want, such as open a level or even attack if it is enemy)
Hope this help you on something!
Alanzote.