You can check a solution I made for picking up and dropping npc here
It has stop and reset logic for npc’s (you can pick them up and drop them)
You can also enable / disable the sensing directly