Random Location and MoveTo

i think you can block random move by using bool and branch or timer stop node

make find(bool) and insert branch next to randomlocation event, make connect it to false

once ai see you, you set find(bool) true and it cannot excute