There is already a function that returns distance between actors (I don’t remember the exact name right now but probably something like Get Distance of Actors).
If you want to find the distance between two vectors (GetActorLocation) then the formula is length(VectorA - VectorB) so you are close, simply get rid of the GetDirectionVector one and subtract them instead.