How do i check the distance between two objects via blueprint?

Im currently working on a final map at college which i designed a while ago. So far i have managed to add an enemy character that follows you around at a set speed and will end the game on collision with you. I want to implement a feature that will teleport the enemy if you get out of range of it but because im working at college i cant download visual basic. Any help would be appreciated as im pretty new to this stuff ;3

There node for that

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/Transformation/GetDistanceTo/index.html

If you want check all the time use Tick event or timers

Subtract two location vectors from one another and get length of result vector with this:

What if I don’t have the object yet? Is there a way to do this with just a world location and not an object reference?

aha! I thought i needed to subtract them but then i wasn’t sure what to do after that. Thanks!

I found a solution to this problem in my project. There’s an object in BP called “Are Any Listeners Within Range”.
Then set the “Maximum Range” to the maximum range of the listener, and “Location” to where your sound is playing. This worked in a single player demo at least, where it only was one listener.