Flashlight should stops AI movement, then resume movement when flashlight isn't shining on them

Any tutorials on how to make that?