How do you make enemies stop

I need an enemy to stop when it attacks via proximity how do I do this

proximity into number: 0 into velocity X and Y
I hope this is what you need, if need be I can send a screenshot if you don’t understand