What is the best way to update patrol location

I made a patrolling NPC and it works perfectly like in this YouTube tutorial.
However there is a problem: My maps are huge, and as the world origin location is changed, the patrol location keeps the same.
What would be the best way to update the patrol location?