I think I have found the solution myself. There is actually a function “Find Path to Location Synchronously” in blueprints that does exactly what i wanted. However, I was using 4.3 version of UE4 and the functionality does not exists in this version.